Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    I did the upgrade from 1.5.5b to 1.5.5e and I see that admin/includes/functions/database.php file is supposed to have changed but the files are exactly the same in both downloads. I also removed the upload file as mentionned.

    Now when trying to make some changes to an attribute or to a product, it fails. I get this in the error log:

    PHP Fatal error: Class 'upload' not found in /home/.../public_html/shop/admin/attributes_controller.php on line 442

    what am I missing... I've redownloaded the zip file for 1.5.5e and still the same file as I had in my original zip file for 1.5.5b
    Last edited by marieAA; 7 Mar 2017 at 07:32 PM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    Quote Originally Posted by marieAA View Post
    I did the upgrade from 1.5.5b to 1.5.5e and I see that admin/includes/functions/database.php file is supposed to have changed but the files are exactly the same in both downloads. I also removed the upload file as mentionned.
    Haha! That's because we changed it in 1.5.5c and then turned it back in v1.5.5d ! So, ya, it's supposed to be the same.

    Quote Originally Posted by marieAA View Post
    Now when trying to make some changes to an attribute or to a product, it fails. I get this in the error log:

    PHP Fatal error: Class 'upload' not found in /home/.../public_html/shop/admin/attributes_controller.php on line 442
    I think you missed updating your /admin/includes/auto_loaders/config.core.php since it points things to load the upload class from the non-admin classes area. ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    Quote Originally Posted by DrByte View Post
    Haha! That's because we changed it in 1.5.5c and then turned it back in v1.5.5d ! So, ya, it's supposed to be the same.


    I think you missed updating your /admin/includes/auto_loaders/config.core.php since it points things to load the upload class from the non-admin classes area. ;)
    I had done it but I can't get back into my admin when I do that so I thought maybe it was something to do with my customization but it's not, right? loll

    ok so something else is wrong. Any thougths because I had done everything else exactly as it was required except for that file.

  4. #4
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    also, is the same true of admin/customers.php file? it is the same in 1.5.5e as it was in 1.5.5b?

    Thanks again

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    Quote Originally Posted by marieAA View Post
    I had done it but I can't get back into my admin when I do that so I thought maybe it was something to do with my customization but it's not, right? loll

    ok so something else is wrong. Any thougths because I had done everything else exactly as it was required except for that file.
    Check your logs directory. There may be an entry related to the includes/classes/upload.php file and something about the [ character particularly if using php 5.3 or below.

    As far as admin/customers.php, don't recall that the problem corrected ever got reverted. The issue was certainly discussed and perhaps the patch applied making the files on your system appear to be the same regardless. I haven't run that specific comparison to know as a matter of fact whether it is/was the same between the two versions.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    Quote Originally Posted by mc12345678 View Post
    Check your logs directory. There may be an entry related to the includes/classes/upload.php file and something about the [ character particularly if using php 5.3 or below.
    yes I get that error in the logs... but if I remove brackets caracter, it then gives me an error on like 208 for the brackets again. Is there something I can replace it with or? I found references to replace the bracket by ( but I still can't get in my admin

    thanks for the helps
    Last edited by marieAA; 8 Mar 2017 at 06:50 PM.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    Quote Originally Posted by marieAA View Post
    yes I get that error in the logs... but if I remove brackets caracter, it then gives me an error on like 208 for the brackets again. Is there something I can replace it with or? I found references to replace the bracket by ( but I still can't get in my admin

    thanks for the helps
    Suggest looking through the following related thread: https://www.zen-cart.com/showthread.php?t=221963

    Sum and total is to try to obtain the now latest copy of 1.5.5e or apply the changes described there or both.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    now I get this in my error logs:

    Parse error: syntax error, unexpected ')' in .../includes/classes/upload.php on line 208

  9. #9
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    I think I got it... but since no matter how I searched I didn't find it on here... I am posting it in case it can be of some help

    Error log said:

    PHP Parse error: syntax error, unexpected '[' in .../includes/classes/upload.php on line 205

    function set_extensions($extensions)
    {
    if (zen_not_null($extensions)) {
    if (is_array($extensions)) {
    $this->extensions = $extensions;
    } else {
    $this->extensions = [$extensions];
    }
    } else {
    $this->extensions = [];
    }
    }
    Changed it to this:

    function set_extensions($extensions)
    {
    if (zen_not_null($extensions)) {
    if (is_array($extensions)) {
    $this->extensions = $extensions;
    } else {
    $this->extensions = ($extensions); // <------ WRONG! Should be: array($extensions)
    }
    } else {
    $this->extensions = array();
    }
    }
    Everything now seems to be working as it should and I no longer get error logs. If you see something wrong that could possibly be wrong with this, please don't hesitate to tell me!!!
    Last edited by DrByte; 9 Mar 2017 at 03:58 AM. Reason: point out error

  10. #10
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: upgrading 1.5.5b to 1.5.5e admin/includes/functions/database.php is the same

    Quote Originally Posted by mc12345678 View Post
    Suggest looking through the following related thread: https://www.zen-cart.com/showthread.php?t=221963

    Sum and total is to try to obtain the now latest copy of 1.5.5e or apply the changes described there or both.
    darn it, why didn't that come up in my search??? lolll... I

    searched the forum for "syntax error, unexpected '['" and then I searched for "includes/classes/upload.php on line 205" when that didn't give any results, I went to Google and did the same but searching zen-cart.com and again no results?!

    In any case, thanks for the help... and glad to confirm I did it right!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 admin/includes/functions/compatibility.php
    By makenoiz in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 11 Dec 2012, 11:53 PM
  2. /admin/includes/functions/general.php not in my files
    By suzijohn in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 9 Jan 2011, 11:32 PM

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