carthrina Posted April 20, 2007 Share Posted April 20, 2007 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 More sharing options...
kirikintha Posted April 20, 2007 Share Posted April 20, 2007 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 More sharing options...
♥FWR Media Posted April 20, 2007 Share Posted April 20, 2007 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 Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
carthrina Posted April 20, 2007 Author Share Posted April 20, 2007 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 More sharing options...
kirikintha Posted April 20, 2007 Share Posted April 20, 2007 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 More sharing options...
carthrina Posted April 20, 2007 Author Share Posted April 20, 2007 Thank you so much friends. I discovered that it was a mistake, i uploaded the wrong header.php to admin folder. Thank you again Link to comment Share on other sites More sharing options...
kirikintha Posted April 20, 2007 Share Posted April 20, 2007 Sweet! Nothing unreal exists Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.