Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

a bit of a problem with a fatal error in admin


Guest

Recommended Posts

im doing awsome with building my webshop without much help lately,what i have run into is i changed my header banner and for some reason im getting a fatal error in my admin page.this is what its saying

 

Fatal error: Call to undefined function: size() in /home/jnglobal/public_html/admin/includes/header.php on line 51

this is the file its calling the error from
if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

 

i really dont understand what its asking me for.any help would be great and i thank all you supporters for your information.

 

jeremiah

Link to comment
Share on other sites

admin/includes/header.php on line 51

 

Ther isn't a line 51 on that page - however there is a line 51 in includes/header.php (with the code you're quoting) - so I'm guessing that you've overwritten your admin/includes/header.php file with your includes/header.php file.

 

Vger

Link to comment
Share on other sites

Ther isn't a line 51 on that page - however there is a line 51 in includes/header.php (with the code you're quoting) - so I'm guessing that you've overwritten your admin/includes/header.php file with your includes/header.php file.

 

Vger

 

 

so i wonder if there is a way of getting the file im missing,i dont know how i over wrote the file but i know its possable to mess up.could i get a clean file somewhere or is this not fixable.

 

thank you for your help

Link to comment
Share on other sites

so i wonder if there is a way of getting the file im missing,i dont know how i over wrote the file but i know its possable to mess up.could i get a clean file somewhere or is this not fixable.

 

thank you for your help

Do you have the original download of OSC? Just copy the file across to your server, unless you have made some severe changes to it!

Link to comment
Share on other sites

Do you have the original download of OSC?  Just copy the file across to your server, unless you have made some severe changes to it!

 

 

i do have a downloaded version and did what you just stated ,i always do a backup but for somereason i had a brain cramp and forgot about the backup.

the first reply was what tipped me off to just go to the backup and update it.

 

once again,thank a bunch

 

jeremiah

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...