Mighty Gorgon
Forum Replies Created
-
Hi Jeremy,
I have increased the memory and everything works fine.Thank you very much for your help.
Hi Jeremy,
here is the LOG:[01-Jun-2016 19:42:26 UTC] PHP Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/XXXX/public_html/wp-includes/functions.php on line 3842 [01-Jun-2016 19:42:30 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/XXXX/public_html/wp-includes/plugin.php on line 202 [01-Jun-2016 19:42:37 UTC] Sorry, but recursing filters on "the_content" breaks NextGEN Gallery. Please see https://core.trac.wordpress.org/ticket/17817 and NGG_DISABLE_FILTER_THE_CONTENT [01-Jun-2016 19:42:40 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 85 bytes) in /home/XXXX/public_html/wp-includes/wp-db.php on line 1780 [01-Jun-2016 19:42:43 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home/XXXX/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-replace-vars.php on line 410 [01-Jun-2016 19:42:48 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /home/XXXX/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-replace-vars.php on line 586It doesn’t seem to be linked to Jetpack, but it get solved when I remove that plugin…
I have found a solution to my specific issue.
I have designed a new page template for my own use and I was using this code:
<?php get_template_part( 'content', 'home' ); ?>I have found that altering the code in this way solved the issue (but I still don’t understande the rationale behind!
<?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'home' ); ?> <?php endwhile; // end of the loop. ?>With the code above the page showed correctly with NGG Optimizer enabled and on a website where NGG has not been installed at all.
When installing and then disabling NGG Optimizer, I need the new code to make the page show-up… very very strange… can someone please tell me the difference among the two codes?
I’ve tried to debug “get_the_content” function and it seems like that without THE LOOP the vars $page and $pages don’t get evaluated correctly. My point is: why with NGG Optimizer (or when NGG Optimizer has never been installed at all!) the page shows up correctly? What I’m missing?
Ok, I found it… I’ll try online as soon as I have some free time.
FILE:
wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\adapter.nextgen_addgallery_ajax.phpFIND:
$root = path_join($fs->get_document_root(), ‘wp-content’);REPLACE WITH:
$root = path_join($fs->get_document_root(), ”);Hi Cais,
thank you for replying.I understand that you cannot replicate the issue on my local setup.
I can confirm though that online works properly.
The only thing I’m missing is the possibility to use folders outside “wp-content”, at least one level up (which was possible in previous version).
Is there a way I can at least enable it manually? Or make it include the folder I have specified in settings as the main folder for my pictures?
Thanks,
Luca