WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] [closed] New Bug Filling Up Log Files Taking Down Site - 20gig And Counting (57 posts)

  1. john
    Member
    Posted 10 months ago #

    Yay a new site debilitating bug has appeared after running 2.0.27 for a while! Our log files are now filled with 20gig and growing of the following:

    PHP Warning: next() expects parameter 1 to be array, integer given in /wordpress/htdocs/wp-includes/plugin.php on line 408
    PHP Warning: current() expects parameter 1 to be array, integer given in /wordpress/htdocs/wp-includes/plugin.php on line 404
    PHP Warning: next() expects parameter 1 to be array, integer given in /wordpress/htdocs/wp-includes/plugin.php on line 408

    Guess what happens when next-gen is disabled? That's right, the error goes away!

    http://wordpress.org/plugins/nextgen-gallery/

  2. btuck044
    Member
    Posted 10 months ago #

    Same exact thing happening here with the newest version over 2.0 We had a log file reach up to 24GB. Had to roll back to version 1.9.1 Next Gen gallery. Caused major problems.

    Please get this issue resolved with the next release.

  3. lizgent
    Member
    Posted 10 months ago #

    Exactly the same problem here - I got warning email from my website host that I had an error log which was 9gb of:-

    [21-Sep-2013 18:09:03 UTC] PHP Warning: next() expects parameter 1 to be array, integer given in...wp-includes/plugin.php on line 408

    I'll have to disable next-gen.

  4. john
    Member
    Posted 10 months ago #

    Unfortunately, it will be difficult for a lot of people to realize that next-gen is the source of their log file drama as the warning doesn't explicitly show the origin of the error.

    I hope a fix for this will come sometime today as it is a site debilitating problem.

    [Moderator Note: No bumping, thank you.]

  5. ilcarota
    Member
    Posted 10 months ago #

    i checked my log inside the worpress folder. it grows with this error:

    [23-Sep-2013 20:44:20 UTC] WordPress errore sul database Table 'XXXXXXXX_wp1.wp_' doesn't exist per la query DELETE FROM wp_ WHERE option_name LIKE '%%displayed_galleries_%%' AND option_value < 1379969060 fatta da do_action_ref_array, call_user_func_array, C_NextGEN_Bootstrap->delete_expired_transients, C_Photocrati_Cache::flush, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query

    where XXXXX is my database...

    also i have this error:

    WordPress errore sul database You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY RAND() LIMIT 9' at line 1 per la query SELECT pid FROM wp_ngg_pictures WHERE exclude = 0 AND galleryid IN () ORDER BY RAND() LIMIT 9 fatta da require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/pinboard/index.php'), get_sidebar, locate_template, load_template, require_once('/themes/pinboard/sidebar.php'), get_sidebar, locate_template, load_template, require_once('/themes/pinboard/sidebar-top.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, C_Widget_Gallery->widget, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query

  6. smmcats
    Member
    Posted 10 months ago #

    Same problem here, it has just started randomly affecting websites that I have created for customers. I'm uploading an older version to see if it does the same thing. This is a major pain.

  7. Kerwood
    Member
    Posted 10 months ago #

    Same problem here.. 20GB+ log file.

    I modified this linje, as a temorary solution. Worked for 24 hours now.

    Original line
    while ( next($wp_filter[$tag]) !== false );

    Modified
    while ( is_array($wp_filter[$tag]) && next($wp_filter[$tag]) !== false );

    Hope they will fix it soon.

  8. lorenzoali
    Member
    Posted 10 months ago #

    I'm having same problem since updating the NextGEN plugin last week. Any idea when this will be fixed or a long term solution? Here is the error log script:

    [24-Sep-2013 07:50:45 UTC] WordPress database error Table 'lorenzop_wp1.wp_' doesn't exist for query DELETE FROM wp_ WHERE option_name LIKE '%%displayed_galleries_%%' AND option_value < 1380009045 made by do_action_ref_array, call_user_func_array, C_NextGEN_Bootstrap->delete_expired_transients, C_Photocrati_Cache::flush, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
    [24-Sep-2013 07:56:41 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'minimum_home_genesis_meta' not found or invalid function name in /home/lorenzop/public_html/wp-includes/plugin.php on line 406
    [24-Sep-2013 08:30:39 UTC] WordPress database error Table 'lorenzop_wp1.wp_' doesn't exist for query DELETE FROM wp_ WHERE option_name LIKE '%%displayed_galleries_%%' AND option_value < 1380011438 made by do_action_ref_array, call_user_func_array, C_NextGEN_Bootstrap->delete_expired_transients, C_Photocrati_Cache::flush, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
    [24-Sep-2013 09:29:02 UTC] WordPress database error Table 'lorenzop_wp1.wp_' doesn't exist for query DELETE FROM wp_ WHERE option_name LIKE '%%displayed_galleries_%%' AND option_value < 1380014942 made by do_action_ref_array, call_user_func_array, C_NextGEN_Bootstrap->delete_expired_transients, C_Photocrati_Cache::flush, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
    [24-Sep-2013 10:28:59 UTC] WordPress database error Table 'lorenzop_wp1.wp_' doesn't exist for query DELETE FROM wp_ WHERE option_name LIKE '%%displayed_galleries_%%' AND option_value < 1380018538 made by do_action_ref_array, call_user_func_array, C_NextGEN_Bootstrap->delete_expired_transients, C_Photocrati_Cache::flush, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
    [24-Sep-2013 11:01:05 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'minimum_home_genesis_meta' not found or invalid function name in /home/lorenzop/public_html/wp-includes/plugin.php on line 406
    [24-Sep-2013 11:28:59 UTC] WordPress database error Table 'lorenzop_wp1.wp_' doesn't exist for query DELETE FROM wp_ WHERE option_name LIKE '%%displayed_galleries_%%' AND option_value < 1380022139 made by do_action_ref_array, call_user_func_array, C_NextGEN_Bootstrap->delete_expired_transients, C_Photocrati_Cache::flush, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query

    [Moderator Note: Please post log files between backticks or use the code button.]

  9. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    All - Database issues are extremely important for use to sort out and error_log messages are also very important for our developers to get a look at.

    We ask you to please submit Bug Reports for these issues with your specific details. We would also greatly appreciate if you could share a set of log in credentials for your WordPress installation as well as FTP credentials for your WordPress installation folder in these cases.

    Thanks!

    - Cais.

  10. DefJam
    Member
    Posted 10 months ago #

    @Kerwood,
    would you please share which file have you modified to fix this issue?
    Thank you!

    Having the same problem:

    [24-Sep-2013 11:20:48 UTC] PHP Warning:  current() expects parameter 1 to be array, null given in /home/username/public_html/wp-includes/plugin.php on line 404
    [24-Sep-2013 11:20:48 UTC] PHP Warning:  next() expects parameter 1 to be array, null given in /home/username/public_html/wp-includes/plugin.php on line 408

    NGG 2.0.22, so not strictly related to 2.0.27

  11. lorenzoali
    Member
    Posted 10 months ago #

    I deactivated the plugin and then reactivated about 4 hours ago. So far it seems to be working. I'll see what happens overnight.

  12. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    @John - We would greatly appreciate a Bug report specifically for your issue (we believe the other issues are already being addressed). Please also specify the error message "PHP Warning: next() expects parameter 1 to be array" as well as our request for this report.

    It would be very important for our developers to be able to get those log in credentials and FTP credentials for your WordPress installation as well.

    Thanks!

    - Cais.

  13. john
    Member
    Posted 10 months ago #

    I have submitted the bug report as per your request via http://www.nextgen-gallery.com/report-bug/

    No offense, but I'm not going to be providing your developers with log in credentials to our live production site.

    This error is being experienced by many installations other than our own.

  14. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    @John - Thanks for the Bug Report, but the error messages you reported originally are not noted anywhere else and we are unable to recreate them in our test environments; and, I completely understand your choice not to share log in credentials for your production site.

    Are you seeing the same issues/errors on your test/development sites? A set of credentials for one of those would be just as valuable to our developers for troubleshooting this issue. Please feel free to respond to our Bug Report conversation with those details.

    Thanks!

    - Cais.

  15. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    Hey all,

    Erick here. Just following up on this. We're actively prepping a NG release right now and this issue is one I think we definitely need to see included. There are actually several issues reported above, and we've tracked down and resolved all but this one:

    PHP Warning: next() expects parameter 1 to be array, integer given in /wordpress/htdocs/wp-includes/plugin.php on line 408

    Right now, we can't duplicate it or reproduce it ourselves under any conditions. And we don't have login credentials for any site with the issue.

    Cais had asked @John for login credentials. But I several others above were reporting the same error. If any of you are willing to provide login credentials, then we'll work on this immediately and try to push out an update immediately.

    Just submit a report here: http://www.nextgen-gallery.com/report-bug/, reference this thread, and include Erick in the title so I'll see it and forward it straight to our developers.

    If we can't get a set of credentials for this, we just can't resolve it. In that case, we'll probably push out the next update without a fix for this and just wait until we do get some credentials at some point.

    Thanks in advance for any assistance. And sincere apologies for the difficulties.

  16. Kerwood
    Member
    Posted 10 months ago #

    @DefJam - Oops, forgot to tell which file :) .. Its some where around line 404 in the wp-includes/plugin.php file.

    Original line.
    while ( next($wp_filter[$tag]) !== false );

    Modified
    while ( is_array($wp_filter[$tag]) && next($wp_filter[$tag]) !== false );

  17. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    @lizgent: Received your bug report. Thanks very much. I replied but your email got bounced back to us. Yours is definitely the error we'd like to see and resolve. What we'd really need is:

    1) WordPress login details
    2) FTP login details

    If you can send those, I'll forward them to the developer and he'll look at your site either this evening or first thing tomorrow. You may want to send from an alternate email. Thanks! (Erick)

  18. eyeQT
    Member
    Posted 10 months ago #

    Same problem here 50Gb error file two days ago. You don't want to know what my hosting service said. :) .Now I downgraded to .21 version and the odd thing is that today another 50Gb file was created. I will try kerwood's solution and let you know.

  19. Kerwood
    Member
    Posted 10 months ago #

    My temp solution still generates errors, but at least its not looping.

    [Tue Sep 24 23:31:20 2013] [error] [client 66.249.66.207] PHP Warning:  reset() expects parameter 1 to be array, integer given in /var/sites/wp-includes/plugin.php on line 401
    [Tue Sep 24 23:31:20 2013] [error] [client 66.249.66.207] PHP Warning:  current() expects parameter 1 to be array, integer given in /var/sites/wp-includes/plugin.php on line 404
  20. lobong
    Member
    Posted 10 months ago #

    Geez I thought I was the only one with this issue...

    Exactly the same error message. It stopped for a while after I deactivated all the plugins yesterday (I didn't which was the issue yet),and now it started all over again!

    Please fix!

  21. eyeQT
    Member
    Posted 10 months ago #

    well the major issue is the loop. Several GB of text data are generated in a few hours. Kerwood, I will open again my error logs and see if the error loop has stopped.
    Thanks for the quick tip though because all this mess would cost me a fortune :(

  22. eyeQT
    Member
    Posted 10 months ago #

    After Kerwood's fix the error still occurs. less loops, still looping

  23. lobong
    Member
    Posted 10 months ago #

    how do I stop this? Now that I've deactivated nextGen, the error log still keep rolling!

  24. Kerwood
    Member
    Posted 10 months ago #

    Remenber to restart apache!
    sudo service apache2 restart

  25. worldtravel
    Member
    Posted 10 months ago #

    I have also had this error on my site and my provider took my site down. I disabled all plugins and brought them back up one by one. Nextgen is not yet producing this problem again, but I have not re-enabled WordPress SEO or WP Geo maps which I guess maybe the conflict with this update. Although NExtgen has another error which is not letting me see the insert image screens

    Anyone else have these plugins along with nextgen and get this loop error issue? I am reluctant to enable Geo and/or SEO until this has been replicated.

  26. eyeQT
    Member
    Posted 10 months ago #

    I have the WordPress SEO latest version! I don't want to disable it though because my url construction is based on this plugin

  27. DickRaney
    Member
    Posted 10 months ago #

    I am experiencing the same problem, huge error log files caused by a pair of errors repeating endlessly after upgrading NextGEN Gallery from 1.9.3 to 2.0.27:

    PHP Warning: current() expects parameter 1 to be array, integer given in /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php on line 404

    PHP Warning: next() expects parameter 1 to be array, integer given in /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php on line 408

    Here are some server settings:

    Operating System : Linux (64 Bit)
    Server : Apache
    Memory usage : 37.25 MByte
    MYSQL Version : 5.1.69
    SQL Mode : Not set
    PHP Version : 5.3.3
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 128
    PHP Max Upload Size : 10M
    PHP Max Post Size : 8M
    PCRE Backtracking Limit : 500000
    PHP Max Script Execute Time : 60s
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes

  28. mweichert
    Member
    Posted 10 months ago #

    Hello!

    Would one of you experiencing this problem mind posting the following please:
    - Which theme you have activated
    - A list of all plugins activated
    - The version of WordPress installed

    Thanks,
    Mike

  29. DickRaney
    Member
    Posted 10 months ago #

    Theme is TwentyTwelve
    WordPress version 3.6.1
    Plugins:
    NextGen Gallery
    Google Analytics for WordPress
    TinyMCE Advanced
    WordPress SEO
    Akismet
    WP Smush.it

  30. Bensch
    Member
    Posted 10 months ago #

    Same Problem!

    This url (most visited by GoogleBot 66.249.75.200) fill up your error logs if you have installed NextGEN Gallery by Photocrati and WordPress SEO:

    http://yourdomain.de/sitemap_index.xml

    Fix it:
    Go to SEO, XML-Sitemaps, uncheck the first checkbox (in german: "Funktionen für XML-Sitemaps aktivieren.")

    Now, i have no more error logs. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.