Viewing 8 posts - 1 through 8 (of 8 total)
Author
Posts
  • #6853

    My error.log file is filling up with this warning since upgrading to 3.2.2

    PHP Warning: Invalid argument supplied for foreach() in ~/library/WT/Menubar.php on line 137

    Paul

    Penguins Are  Boss

    https://bootesgowland.kiwitrees.net

    Happy to be hosted by kiwitrees.net

  • #6854

    ERROR 2: Invalid argument supplied for foreach(); 0 Error occurred on line 137 of file MenuBar.php in function getListsMenu 1 called from line 60 of file module.php in function getMenu 2 called from line 283 of file MenuBar.php in function getMainMenus 3 called from line 168 of file header.php in function require 4 called from line 185 of file Page.php in function pageHeader 5 called from line 75 of file family.php

    Penguins Are  Boss

    https://bootesgowland.kiwitrees.net

    Happy to be hosted by kiwitrees.net

  • #6855

    I haven’t been able to reproduce this on my site(s), but I have looked at a number of kiwitrees hosting client sites and some do display the same issue.

    Looking at the code referred to I’m fairly certain I can see what combination of settings might cause it, so hopefully the attached replacement file will fix it. Please let me know after you’ve used it for a couple of days at least. It may take that long as my suspicion is the trigger (not the cause) is a visit from a search engine)

    So:

    1. Replace the file kiwitrees/library/WT/MenuBar.php with the one in the attached zip folder.
    2. Delete all existing errors (or at least the ones related to this error).
    3. Check the logs over a few days to see of it recurs.
    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6860

    {Delete all existing errors (or at least the ones related to this error).}

    Could I delete the complete error log and will it make automatically a new error log when an error occurs.?

  • #6861

    I installed the new file and deleted the error log. After 24 hours I now have no errors instead of the 320,000+ errors since upgrade. I think the fix works!

    Wim – I sometimes need to delete the file ~/kiwitrees/error.log if it grows too big, and yes it is recreated if new errors occur.

    Penguins Are  Boss

    https://bootesgowland.kiwitrees.net

    Happy to be hosted by kiwitrees.net

    1 user thanked author for this post.
  • #6862

    Could I delete the complete error log and will it make automatically a new error log when an error occurs?

    Yes – BUT…….

    What exactly do you mean by “delete the complete error log”?

    1 – I’m assuming you mean the kiwitrees error log (kiwitrees administration > site administration > logs)o.
    2 – By delete, do you mean use the “delete” button on that page, or deleting the complete table in MySQL?

    The kiwitrees log table records much more than just errors. It also records many things you “might” want to keep, such as when users logged in, what the did, what search’s were done on your site by users or non-registered visitors, etc etc. So do you want to delete all that interesting information as well?

    If you do mean the kiwitrees logs, and you mean to only delete all errors, then select the option for errors in the drop-down box. Then click “delete”. That will delete ALL errors (not just the ones displayed on the first results page) but leave everything else alone.

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6863

    Wim – I sometimes need to delete the file ~/kiwitrees/error.log if it grows too big, and yes it is recreated if new errors occur.

    CAUTION – that file is NOT created by kiwitrees. It is the server logs, created by apache. You just happen to have it located, it seems, in your kiwitrees folder. Many / most people do not. It is is more commonly stored in some other location on the server.
    That said, it is not a problem to delete it as it will be re-created. But your server ‘should’ also have a setting (try looking in cPanel / phpmyadmin or whatever you use) to constrain the maximum file size. Once that is reached it is zipped and stored and a new file started.

    Nigel
    My personal kiwitrees site is www.our-families.info
    1 user thanked author for this post.
  • #6864

    The last answer, was what I meant.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Menubar.php – error.log’ is closed to new replies.