Search Forums
Forums
Kiwitrees on Twitter
    Tags

    googlemap. modified, illegitimate, Batch Updates, charts, release, request, slideshow, flags, configure, button, new feature, login, My Page, fixing errors, Support/Bug Reporting, special character, database, contact, custom, googlemaps, resources, lists individuals families, formatting, roadmap, data errors, ckeditor, repo, media, icons, Add a wife, beta, html, folder, themes, emigration, dropbox. token, editor, menus, validation, follow, login failure, Favourites, google, Require visitor authentication, Administration, updates, Histo, custom modules, MAC, individual resource, I18N, responsive menus, Canada, spouse, hover, cousin tab, husband, ADDR, PHP, 3.1

    Tagged: , ,

    Topic:   Menubar.php – error.log  

    This topic contains 7 replies, has 3 voices, and was last updated by grebjiem grebjiem 1 year, 4 months ago.

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

      139 posts

      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

      Apache 2.4.25; MariaDB 10.1.22; PHP 7.0.18

      http://bootesgowland.info

      #6854
      pab
      pab
      Participant

      139 posts

      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

      Apache 2.4.25; MariaDB 10.1.22; PHP 7.0.18

      http://bootesgowland.info

      #6855
      kiwi
      kiwi
      Keymaster

      1595 posts

      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
      Attachments:
      #6860
      grebjiem
      grebjiem
      Participant

      116 posts

      {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
      pab
      pab
      Participant

      139 posts

      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

      Apache 2.4.25; MariaDB 10.1.22; PHP 7.0.18

      http://bootesgowland.info

      1 user thanked author for this post.
      #6862
      kiwi
      kiwi
      Keymaster

      1595 posts

      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
      kiwi
      kiwi
      Keymaster

      1595 posts

      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
      grebjiem
      grebjiem
      Participant

      116 posts

      The last answer, was what I meant.

    Viewing 8 posts - 1 through 8 (of 8 total)

    You must be logged in to reply to this topic.