Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Fixing LARGE_IMAGE_WIDTH and LARGE_IMAGE_HEIGHT PHP notices

    Symptom:

    you get PHP notices (debug logs) like this:

    #1 require(/includes/templates/custom/templates/tpl_modules_main_product_image.php) called at [/includes/templates/custom/templates/tpl_product_info_display.php:72]
    #2 require(/includes/templates/custom/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:153]
    #3 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/custom/common/tpl_main_page.php:171]
    #4 require(/includes/templates/custom/common/tpl_main_page.php) called at [/index.php:94]

    --> PHP Warning: Use of undefined constant LARGE_IMAGE_HEIGHT - assumed 'LARGE_IMAGE_HEIGHT' (this will throw an Error in a future version of PHP) in /includes/templates/custom/templates/tpl_modules_main_product_image.php on line 24.



    Solution:

    Run this in Admin > Tools > Install SQL Patches:
    Code:
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Large Image Width', 'LARGE_IMAGE_WIDTH', '150', 'The pixel width of large images', '4', '80', now());
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Large Image Height', 'LARGE_IMAGE_HEIGHT', '120', 'The pixel height of large images', '4', '81', now());
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Mar 2006
    Location
    Auckland, New Zealand
    Posts
    234
    Plugin Contributions
    0

    Default Re: Fixing LARGE_IMAGE_WIDTH and LARGE_IMAGE_HEIGHT PHP notices

    Thank you!!!!! ((hugs))
    Elemi

    The Art of Bespoke Aromatherapy
    www.AmorAromatherapy.co.nz

 

 

Similar Threads

  1. v155 PHP Notices
    By Dave224 in forum Bug Reports
    Replies: 5
    Last Post: 30 Apr 2018, 10:18 PM
  2. v154 Has there ever been a LARGE_IMAGE_WIDTH (and _HEIGHT) constant?
    By lat9 in forum Basic Configuration
    Replies: 3
    Last Post: 10 May 2015, 03:35 PM
  3. PHP 5.3 Fixing with old version... Problems...
    By kevie192 in forum General Questions
    Replies: 55
    Last Post: 18 Jul 2010, 08:28 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