Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot access Admin


carthrina

Recommended Posts

Hi,

 

what does this error message mean ?

 

Fatal error: Call to undefined function: size() in /home/httpd/vhosts/website.com/httpdocs/admin/includes/header.php on line 51

 

 

I recieved it when I tried to access Admin, when I click on any label on admin, for example Configuration or Catalogue ....

 

this is the code of line 51 in admin header.php

 

if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>

 

 

Please kindly help

Link to comment
Share on other sites

well, that error is telling you it cannot find a function called size();

 

sure it's not a typo and the function needs to be called resize() ?

 

 

that's the closest I can find, perhaps a contribution is not working properly?

Nothing unreal exists

Link to comment
Share on other sites

All i can think is that you added a contibution that added a function size()

 

This is not a PHP function and to my knowledge is not an osC function

Link to comment
Share on other sites

Oh really? But I haven't added any contribution. My os is fresh, I only installed a new template. Since then i couldn't have access to admin. Please what should I do to correct this problem?

 

Should I delete this function? or edit it or ??

 

Thank you so much

Link to comment
Share on other sites

My admin/includes/header file looks like this:

 

<?php
/*
 $Id: header.php,v 1.19 2002/04/13 16:11:52 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 if ($messageStack->size > 0) {
echo $messageStack->output();
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>
<td align="right"><?php echo '<a href="http://www.oscommerce.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'header_support.gif', HEADER_TITLE_SUPPORT_SITE, '50', '50') . '</a>  <a href="' . tep_catalog_href_link() . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_ONLINE_CATALOG, '53', '50') . '</a>  <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_administration.gif', HEADER_TITLE_ADMINISTRATION, '50', '50') . '</a>'; ?>  </td>
 </tr>
 <tr class="headerBar">
<td class="headerBarContent">  <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>'; ?></td>
<td class="headerBarContent" align="right"><?php echo '<a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a>  |  <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a>  |  <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>'; ?>  </td>
 </tr>
</table>

 

Does yours look like this?

Nothing unreal exists

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...