hypermotion
Forum Replies Created
-
I solved this issue by adding in file
plugin.php
just before last if !$is_allowed return new WP_ERROR block an override that checks for request method (lines 38/39)$is_allowed = preg_match($regex_checker, $request->get_route()); $is_allowed = apply_filters('reqauth/is_allowed', $is_allowed); // extra code block if ($request->get_method() === 'OPTIONS') { $is_allowed = true; } if (!$is_allowed) { return new WP_Error('rest_not_logged_in', __('You are not currently logged in.'), array('status' => 401)); }
Forum: Plugins
In reply to: [Advanced AJAX Page Loader] Issue with version 2.7The same thing happened to me. Opening bracket in one of DOM containers is missing and everything stops working.
Uploading old files (lame reverting) helped in my case.I forgot to mention: WordPress 3.9
I found from my backups (Multisite + WPML install) that NextGen 2.0.33 Worked fine. I didn’t check every version, but earlier versions got me no html 5, 4, flash error, later versions got me no visual editor in posts and pages editor.
What I did to make Nextgen run with ajax loaded content (AAPL in my case as well) – it’s a really ugly solution – but it works with Nextgen 2 and my installation:
I inserted one Nextgen gallery into footer code (through shortcode) so I know it is executed on every page one can enter.
Then I used CSS and set “display: none;” to the container’s CSS style to hide it for all pages.
All Nextgen javascripts are loaded in head now and all functionality started to work.Why does this work?
If I do load content with ajax head is not modified – only the content, so if first page I open through browser ULR bar doesn’t include Nextgen gallery, then the necessary scripts are not loaded into my website.
You can make sure if you do have the same problem as me by typing in browser’s URL Bar the address to the page that has Nextgen gallery inserted (Nextgen will add the javascripts to head then, if You start with a page that doesn’t have Nextgen gallery it won’t work when You ajax-change your page to one with gallery).I did find load codes for AAPL but as in other cases they must have stopped working at some point.
@photocrati – sorry if I mess this topic once again .. (is there no private messages system on WordPress network)?
Anyway … wasn’t my reply connected to the issue?
Today I’m not sure if I got “Access is denied” message (I came across this problem some time ago so I don’t remember this very well, or at almost all – obviously) but I replied to javascript errors that I found in my installation witch description I found in this topic.I believe that this bug was the reason all javascript crashed and blank insert gallery window was displayed also in my installation. My workaround fixed the error for me at that point in time.
In my case it helped to reformat code around the error by hand.
I cleared all spaces and formatted it againI got it to work, first thing that came to my mind did the trick.
Console error “Can’t find variable: icl_ajxloaderimg_src
scripts.js:117 TypeError” cleary stated lack of a variable in code …. so I created new one one line before that.
icl_ajxloaderimg_src = '';
I suppose it might be a forgotten idea of WPML authors, custom user loader image perhaps?Anyway … it solved much more problems then inserting galleries in posts – WPML generated lots of javascript errors in other places, none of them appear now :]
@photocrati Member – since I run into You (by the way, good support), please fix the error with displaying NextGen thumbnails on lists in admin panel (like Manage galleries and others) > multi-site installation, NextGen 2.0.33 WordPress 3.7.1 – I believe it’s my client’s server provider fault, because as far as I know it considers only their servers (home.pl), they don’t use apache but some other invention of theirs witch isn’t 100% php documentation compatible. If You could please look into it :]
Meanwhile to make it work I do the w.bear workaround after every update (I found it here:
https://www.ads-software.com/support/topic/nggallerycss-slashes-are-missing?replies=24 )Same here … insert gallery in post + wpml.
If I turn wpml off all’s fine.Nice1 SylwiaFP :]
I’m sure You know that:
ReferenceError: photocrati_ajax is not defined
https://vostok.travel.pl/wp-admin/admin.php?page=ngg_addgallery
Line 449hmm .. I was hoping to find an answer for this question as well.
SO: Is thee a way to check access boxes by default?