Thread: PHP Errors

Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2008
    Location
    Fayetteville, GA
    Posts
    7
    Plugin Contributions
    0

    Default PHP Errors

    Just realized that our site was having these issues. It must have started after the 9th because that was the last online sale we have seen. Kind of thankful to sashbox for going down or wouldn't have realized it yet while checking everything.

    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/blessed/public_html/shop/includes/autoload_func.php on line 19

    Warning: ksort() expects parameter 1 to be array, integer given in /home/blessed/public_html/shop/includes/autoload_func.php on line 20

    Warning: Invalid argument supplied for foreach() in /home/blessed/public_html/shop/includes/autoload_func.php on line 21

    Fatal error: Call to a member function on a non-object in /home/blessed/public_html/shop/includes/counter.php on line 23

    The lines that are called up are:

    19 require($entry['loadFile']);
    20 $debugOutput .= 'include(\'' . $entry['loadFile'] . '\');' . '</br>';
    21 break;
    22 case 'init_script':
    23 $baseDir = DIR_WS_INCLUDES . 'init_includes/';
    24 if (file_exists(DIR_WS_INCLUDES . 'init_includes/overrides/' . $entry['loadFile'])) {
    25 $baseDir = DIR_WS_INCLUDES . 'init_includes/overrides/';
    26 }

    I admit I'm a total noob with Zen Cart so hoping that as I read up on it, somebody can offer a hand. We just realized that this part of our site has most likely been down for 3 weeks, and needless to say it needs to get back up (no pressure on me!).

    Thanks!

  2. #2
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: PHP Errors

    got a URL we can look at?
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

  3. #3
    Join Date
    Apr 2008
    Location
    Fayetteville, GA
    Posts
    7
    Plugin Contributions
    0

    Default Re: PHP Errors

    Ack sorry! Trying to figure this out and wife had a false labor tonight lol. Too much going on at once!! =D

    http://www.blessednest.com

  4. #4
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: PHP Errors

    try the Debug Error-Logging Utility https://www.zen-cart.com/tutorials/index.php?article=82 see what shows up for you. It will tell you the issue
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

  5. #5
    Join Date
    Apr 2008
    Location
    Fayetteville, GA
    Posts
    7
    Plugin Contributions
    0

    Default Re: PHP Errors

    Thanks will get that!

    Seems sashbox is having issues again. So can't do much, can't even ping the server right now.

  6. #6
    Join Date
    Apr 2008
    Location
    Fayetteville, GA
    Posts
    7
    Plugin Contributions
    0

    Default Re: PHP Errors

    Ok, finally got site back up and running and was able to put that debug in it. Here are the results (putting them up here to see if I'm missing something while I'm trying to fix it too):

    [26-Apr-2008 14:24:31] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/blessed/public_html/shop/includes/autoload_func.php on line 19
    [26-Apr-2008 14:24:31] PHP Warning: ksort() expects parameter 1 to be array, integer given in /home/blessed/public_html/shop/includes/autoload_func.php on line 20
    [26-Apr-2008 14:24:31] PHP Warning: Invalid argument supplied for foreach() in /home/blessed/public_html/shop/includes/autoload_func.php on line 21
    [26-Apr-2008 14:24:31] PHP Fatal error: Call to a member function on a non-object in /home/blessed/public_html/shop/includes/counter.php on line 23

    I also noticed that we seem to be using an older version of Zen Cart (behind by a release). I just kind of jumped on board with this project to help a friend so have a little learning curve with this product. Would it help to upgrade to the new release?

  7. #7
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: PHP Errors

    upgrade is always good for various of things, I would try upgrading and see if it works.

    Backup the old files first.
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

 

 

Similar Threads

  1. Replies: 0
    Last Post: 7 Jan 2015, 12:57 AM
  2. Replies: 3
    Last Post: 18 Nov 2014, 09:34 PM
  3. Displaying php errors in shopping_cart.php
    By jsmuck02 in forum General Questions
    Replies: 1
    Last Post: 25 Apr 2008, 07:53 AM
  4. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg