Results 1 to 10 of 10
  1. #1

    Default Blank Product Edit Pages

    ZC 1.54
    m.fantasycostume.com

    Suddenly getting blank pages when trying to edit products.

    Here's what the log file says:

    PHP Fatal error: Call to undefined method object Info::updateObject Info() in /home/content/43/4941343/html/com-m/wax_candles/includes/modules/product/collect_info.php on line 65

    Rusty
    11 Years and I finally got upgraded to "Follower." :P

  2. #2

    Default Re: Blank Product Edit Pages

    BTW - there does not seem to be an issue with line 65 of /home/content/43/4941343/html/com-m/wax_candles/includes/modules/product/collect_info.php

    11 Years and I finally got upgraded to "Follower." :P

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,691
    Plugin Contributions
    6

    Default Re: Blank Product Edit Pages

    it was working... it stopped.... line 65 is perfect. its beautiful... its just a perfect line...

    you are running zc v1.5.4.

    see:

    https://docs.zen-cart.com/user/first..._requirements/

    looks like your host upgraded you to php 7.x.

    best.
    practice #socialdistancing #staysafe
    email is hard....
    help out with the green....

  4. #4

    Default Re: Blank Product Edit Pages

    I wish it was that easy. Then maybe I could downgrade my php version in the server. However, this particular server will not run higher than php ver 5.6.

    Name:  php-ver.jpg
Views: 112
Size:  17.2 KB

    Rusty
    11 Years and I finally got upgraded to "Follower." :P

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,691
    Plugin Contributions
    6

    Default Re: Blank Product Edit Pages

    Quote Originally Posted by masterrusty View Post
    I wish it was that easy. Then maybe I could downgrade my php version in the server. However, this particular server will not run higher than php ver 5.6.

    Name:  php-ver.jpg
Views: 112
Size:  17.2 KB

    Rusty
    what does admin -> tools -> server/version info say?

    look for the php version there as in:

    https://docs.zen-cart.com/user/admin...s/server_info/

    i don't trust your cpanel.... maybe it is right.... but lets find out for sure.
    practice #socialdistancing #staysafe
    email is hard....
    help out with the green....

  6. #6

    Default Re: Blank Product Edit Pages

    looks good there too...

    PHP Version: 5.6.27 (Zend: 2.6.0) PHP Memory Limit: 64M PHP Safe Mode: Off
    PHP File Uploads: On Max Size: 32M
    11 Years and I finally got upgraded to "Follower." :P

  7. #7
    Join Date
    Jul 2012
    Posts
    15,329
    Plugin Contributions
    17

    Default Re: Blank Product Edit Pages

    So two questions:
    Line 65 of admin/includes/modules/product/collect_info.php, does it look like this?:
    Code:
    $pInfo->objectInfo($product->fields);
    And if you open admin/includes/classes/object_info.php what are the contents? Is there a method called objectInfo? This would be code within the class definition identified with function starting the line. The existing 1.5.4 function is on line 26 and reads as:
    Code:
        function objectInfo($object_array) {
    It could be possible that someone was attempting to make this php 7.x ready and didn't realize that there were direct calls to that method and therefore changed its format.

    Please identify discrepancies to the above as related to the existing store.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  8. #8

    Default Re: Blank Product Edit Pages

    Quote Originally Posted by mc12345678 View Post
    So two questions:
    Line 65 of admin/includes/modules/product/collect_info.php, does it look like this?:
    Code:
    $pInfo->objectInfo($product->fields);
    Yes.
    $pInfo->updateObjectInfo($product->fields);
    And if you open admin/includes/classes/object_info.php what are the contents? Is there a method called objectInfo? This would be code within the class definition identified with function starting the line. The existing 1.5.4 function is on line 26 and reads as:
    Code:
        function objectInfo($object_array) {
    Yes.
    function objectInfo($object_array) {
    It could be possible that someone was attempting to make this php 7.x ready and didn't realize that there were direct calls to that method and therefore changed its format.

    Please identify discrepancies to the above as related to the existing store.
    They are as you describe.

    Rusty
    Last edited by masterrusty; 19 May 2020 at 08:42 PM.
    11 Years and I finally got upgraded to "Follower." :P

  9. #9
    Join Date
    Aug 2020
    Location
    South Africa
    Posts
    1
    Plugin Contributions
    0

    Default Re: Blank Product Edit Pages

    Hi there.

    I am having a similar problem. When I try to add a product, my admin are gives be a blank page. - As, I am still in admin but it gives me no option to add anything. - Blank page.

  10. #10
    Join Date
    Jan 2004
    Posts
    65,668
    Blog Entries
    7
    Plugin Contributions
    244

    Default Re: Blank Product Edit Pages

    Blank pages are typically a result of fatal PHP script error, meaning something's gone wrong and it can't finish drawing the page.
    The cause is recorded in logs on the server.
    https://docs.zen-cart.com/user/troub...ng/blank_page/

    Find out the error message in the logs, and take action to fix the error accordingly.

    Typical cause is using an old Zen Cart version on a server that's got "too new" a PHP version on it.
    .

    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.

 

 

Similar Threads

  1. v153 Edit Product page blank
    By jsarwar in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 30 Apr 2016, 08:05 PM
  2. v139d Product Description won't save....Goes blank on each edit!
    By elninomago in forum General Questions
    Replies: 3
    Last Post: 22 Jan 2015, 09:38 PM
  3. Edit Product in Admin Blank Page after Upgrade
    By BlackOrchidCouture in forum Upgrading from 1.3.x to 1.3.9
    Replies: 8
    Last Post: 25 May 2011, 04:28 PM
  4. Blank screen when I click new product or edit product
    By bradg120177 in forum General Questions
    Replies: 1
    Last Post: 15 May 2011, 08:50 PM
  5. Edit Product Blank Page
    By NickCB1966 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Jul 2010, 03:11 PM

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