Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Missing file in ZC 1.5.5e ??

    Did a comparison of file changes btw 1.5.5d and 1.5.5e and can't find the file

    /admin/includes/classes/upload.php

    in the 1.5.5e file system.

    Am I missing something?

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Missing file in ZC 1.5.5e ??

    I believe this is relevant from the announcement

    Consolidate to a single upload class, shared between admin/catalog
    the change log should probably list that the file was dropped from the admin/includes/classes
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Missing file in ZC 1.5.5e ??

    Quote Originally Posted by barco57 View Post
    .....the change log should probably list that the file was dropped from the admin/includes/classes
    That's what I thought, should be a heading "Deleted files in ZC 1.5.5e" and that file listed there.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Missing file in ZC 1.5.5e ??

    Ya, it was supposed to say the file was deleted, not merely "changed".

    See the new zip dated 03/03/2017: https://www.zen-cart.com/showthread....14#post1326914
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Missing file in ZC 1.5.5e ??

    Turns out it should have also mentioned that another file was changed too:

    /admin/includes/functions/database.php


    This was changed in v155d but not everybody got it, so best to update it too. :)
    .

    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.

  6. #6
    Join Date
    Feb 2015
    Location
    UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Missing file in ZC 1.5.5e ??

    Having now caught up with this and found out about the 'missing' file as detailed above. If do the upgrade to 'e' from 'd' then my admin logon fails. However, when looking at the debug log I see that:

    /includes/classes/upload.php

    is 'failing'. If I revert this file to the 'd' version, leaving all the other changes at their 'e' versions, then everything works.

    The live site works perfectly ether way of course. Any ideas ?

    Michael

  7. #7
    Join Date
    Feb 2015
    Location
    UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Missing file in ZC 1.5.5e ??

    This is the acual debug error message. I am afraid I am not really up-to-speed with php, so not sure what is wrong ?:

    [03-Mar-2017 04:49:24 America/Phoenix] PHP Parse error: syntax error, unexpected '[' in /home/content/78/11924578/html/includes/classes/upload.php on line 25

    and this is line 25:

    function __construct($file = '', $destination = '', $permissions = '644', $extensions = [])

    Michael

  8. #8
    Join Date
    Feb 2011
    Posts
    33
    Plugin Contributions
    0

    Default Re: Missing file in ZC 1.5.5e ??

    Quote Originally Posted by DrByte View Post
    Turns out it should have also mentioned that another file was changed too:

    /admin/includes/functions/database.php
    DrByte, so if I am following your two replies, I am supposed to ...

    1) delete from my site /admin/includes/classes/upload.php ?
    2) upload a new version of /admin/includes/functions/database.php from the 1.5.5e zip file ?

  9. #9
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Missing file in ZC 1.5.5e ??

    Quote Originally Posted by Mikeondraco View Post
    Having now caught up with this and found out about the 'missing' file as detailed above. If do the upgrade to 'e' from 'd' then my admin logon fails. However, when looking at the debug log I see that:

    /includes/classes/upload.php

    is 'failing'. If I revert this file to the 'd' version, leaving all the other changes at their 'e' versions, then everything works.

    The live site works perfectly ether way of course. Any ideas ?

    Michael
    Quote Originally Posted by Mikeondraco View Post
    This is the acual debug error message. I am afraid I am not really up-to-speed with php, so not sure what is wrong ?:

    [03-Mar-2017 04:49:24 America/Phoenix] PHP Parse error: syntax error, unexpected '[' in /home/content/78/11924578/html/includes/classes/upload.php on line 25

    and this is line 25:

    function __construct($file = '', $destination = '', $permissions = '644', $extensions = [])

    Michael
    What version of PHP are you using? I assume it's 5.3.x or less based on the response and the expectation of PHP version in which the provided code works...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Feb 2015
    Location
    UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Missing file in ZC 1.5.5e ??

    Just cheked with my hosting company (GoDaddy) and it reports PHP 5.3

    Michael

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Missing language file
    By dperez78 in forum Basic Configuration
    Replies: 0
    Last Post: 27 Jun 2008, 07:45 AM
  2. ipn_main_handler file missing error but file present
    By Bryony in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 11 Dec 2007, 02:08 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR