unmasked Posted August 26, 2010 Posted August 26, 2010 I replaced or added all the files into my catalog but when I loaded my store i got this error - "Fatal error: Call to a member function image() on a non-object in catalog/includes/functions/html_output.php on line 78" than I reloaded the page again and got this error "Fatal error: Call to a member function add_current_page() on a non-object in catalog/includes/application_top.php on line 320" would it help if i copied and pasted my php documents?
FIMBLE Posted August 26, 2010 Posted August 26, 2010 Fatal error: Call to a member function image() on a non-object in catalog/includes/functions/html_output.php on line 78: means that its a null, or none exists "non-object" Fatal error: Call to a member function add_current_page() on a non-object in catalog/includes/application_top.php on line 320": is a browser crash, close your browser and try again. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
unmasked Posted August 26, 2010 Author Posted August 26, 2010 Fatal error: Call to a member function image() on a non-object in /path_to/includes/functions/html_output.php on line 78 What does null, or none exists "non-object" mean? Fatal error: Call to a member function image() on a non-object in catalog/includes/functions/html_output.php on line 78: means that its a null, or none exists "non-object" Fatal error: Call to a member function add_current_page() on a non-object in catalog/includes/application_top.php on line 320": is a browser crash, close your browser and try again. Nic
FIMBLE Posted August 26, 2010 Posted August 26, 2010 It means that there is no instance when the image was called for, you sure you have not missed a manual addition of the add on? Did it change anything in the application_top.php or html_output.php? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
unmasked Posted August 26, 2010 Author Posted August 26, 2010 when i replaced or added new files - application_top was a file that was replaced. I never touched html_output. the only thing that i did not add was the dutch language files. It means that there is no instance when the image was called for, you sure you have not missed a manual addition of the add on? Did it change anything in the application_top.php or html_output.php? Nic
unmasked Posted August 26, 2010 Author Posted August 26, 2010 "Error --- includes/functions/html_output.php on line 78" in the unzipped folder of this add on there is a folder for functions but there is no file in there. Should there have been the html_output.php file that I should have replaced? In the manual instructions I didnt see anything about that html_output file.
FIMBLE Posted August 26, 2010 Posted August 26, 2010 im not sure, i have never used that addon, line 78 ish is function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } it means if no image present and images are required return an error, you can try to set images required to false in admin / configuration / images >> image required What does the add on do? I take it that its some kind of QTY discount? nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
unmasked Posted August 26, 2010 Author Posted August 26, 2010 Thank you nic for helping. Im really trying to learn this stuff but when something goes wrong I have no idea what the error messages mean or how to fix them. This add on is the price break for buying in quantity. I located the code here is how its listed on my site // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; im not sure, i have never used that addon, line 78 ish is function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } it means if no image present and images are required return an error, you can try to set images required to false in admin / configuration / images >> image required What does the add on do? I take it that its some kind of QTY discount? nic
FIMBLE Posted August 26, 2010 Posted August 26, 2010 OK i dont believe you mentioned STS prior to this, try this post in the STS forum http://www.oscommerce.com/forums/topic/253442-product-notifications-error-help/ seems to have happend before to others Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
unmasked Posted August 26, 2010 Author Posted August 26, 2010 thanks nic sorry I left out STS - I guess ever add on counts. OK i dont believe you mentioned STS prior to this, try this post in the STS forum http://www.oscommerce.com/forums/topic/253442-product-notifications-error-help/ seems to have happend before to others Nic
Recommended Posts
Archived
This topic is now archived and is closed to further replies.