Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Help required


DarrenJMcCabe

Recommended Posts

Posted

Last night I installed the Information Pages Unlimited contrib and when I was done, I could no longer access the main page for my site, the admin panel works fine.

 

When I try to visit the main page I get this:

 

Fatal error: Call to undefined function: tep_not_null() in /home/faelsafe/public_html/includes/classes/language.php on line 74

 

Please help me sort this problem. When installing the contrib I never went near the language.php file so dont understand why the error is there.

Posted
Last night I installed the Information Pages Unlimited contrib and when I was done, I could no longer access the main page for my site, the admin panel works fine.

 

When I try to visit the main page I get this:

 

Fatal error: Call to undefined function: tep_not_null() in /home/faelsafe/public_html/includes/classes/language.php on line 74

 

Please help me sort this problem. When installing the contrib I never went near the language.php file so dont understand why the error is there.

 

The language.php is trying to use the tep_not_null() function but as it can not find it the error is thrown. The function tep_not_nul() itself you should find however inside your /home/faelsafe/public_html/includes/functions/general.php

I don't know the Pages Unlimited contrib but somewhere, maybe in general.php itself, you removed or changed to much.

Posted

Thanks for the help matey.

 

I have gone to check the general.php however, there doesnt appear to be one ?

 

I have general.js file if that is what you mean?

 

More Info:

 

After looking through few of the files that are included with the Information Pages contrib, I found in the catalog\includes\application_top.php this:

 

  if (tep_not_null($cPath)) {
$cPath_array = tep_parse_category_path($cPath);
$cPath = implode('_', $cPath_array);
$current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
 } else {
$current_category_id = 0;
 }

 

Is this where the problem may be? If so does this provide any clues on how to fix it?

Posted
Thanks for the help matey.

 

I have gone to check the general.php however, there doesnt appear to be one ?

 

I have general.js file if that is what you mean?

 

That would explain the problem. You should have a general.php in the directory includes/functions. The general.js resides in the includes directory.

Posted

Thanks again for the help mate, however the file was there I was just looking int he wrong place.

 

I decided to retrace my steps and undo all the changes I had made, which thankfully has my page back to something like it was.

 

Thanks again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...