Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: in modules.php = PLZ HLP! LOST.


kimberly333

Recommended Posts

Posted

i've searched extensively but can't find a solution. help or redirection appreciated!

 

in store admin. under modules - payment area...getting this error.

Fatal error: Call to undefined function: check() in /hsphere/local/home/kmberly3/eweie.com/admin/modules.php on line 133

 

also the left side menu thingy is missing (w/opt. install,edit, etc.)

 

this is the portion of code it calls to

 

$class = substr($file, 0, strrpos($file, '.'));
if (tep_class_exists($class)) {
  $module = new $class;
 [b]	if ($module->check() > 0) {[/b]
	if ($module->sort_order > 0) {
	  $installed_modules[$module->sort_order] = $file;
	} else {
	  $installed_modules[] = $file;
	}
  }

 

i've checked it against the virgin modules.php & the ipn version, and run it through "tidy", and scoured google, but :'( i'm lost! not sure if i've inclded enough info?!? hoping.

thanx

Posted

ok change this:

 

$class = substr($file, 0, strrpos($file, '.'));
if (tep_class_exists($class)) {
  $module = new $class;
 [b]	if ($module->check() > 0) {[/b]
	if ($module->sort_order > 0) {
	  $installed_modules[$module->sort_order] = $file;
	} else {
	  $installed_modules[] = $file;
	}
  }

 

to this:

 

$class = substr($file, 0, strrpos($file, '.'));
if (tep_class_exists($class)) {
  $module = new $class;
if ($module->check() > 0) {
	if ($module->sort_order > 0) {
	  $installed_modules[$module->sort_order] = $file;
	} else {
	  $installed_modules[] = $file;
	}
  }

 

That should fix the error.

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

:blush:

you are sweet to have taken the time to help!!!

i truly appreciate it!

i was so excited to get a reply

:D

 

small problem though...my bad. just assuming since the code is identical, except for the tags.......

i tried to put line 133 in bold text.

(which didn't work), and think you might have thought that was the problem.

 

still...thank you for your time just the same!!!

Archived

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

×
×
  • Create New...