Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Crashed site with error messages


Guest

Recommended Posts

Hi, I need some help here please. I recently set up my store Debz Ceramics everything was OK until earlier this evening. I was 'fiddling' with the site but never touched this part.

 

I can sometimes get the first page of the site but clicking on anything returns this error

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/content/m/a/r/martyn357/html/includes/application_top.php on line 312

 

Line 312 is:

 

311 // set the session ID if it exists

312

313 if (isset($HTTP_POST_VARS[tep_session_name()])) {

314

315 tep_session_id($HTTP_POST_VARS[tep_session_name()]);

316

317 } elseif ( ($request_type == 'SSL') && isset($HTTP_GET_VARS[tep_session_name()]) ) {

318

319 tep_session_id($HTTP_GET_VARS[tep_session_name()]);

320

321 }

 

I have looked at this line 312 and indeed all through that php page but can't find any pointers.

 

I also get this error when the front page does load:

 

Parse error: syntax error, unexpected '<' in /home/content/m/a/r/martyn357/html/includes/footer.php on line 38

 

 

36 <?php

37 }

38 </td></tr></table>

39 ?>

 

As you can see there is no orphan '<' that I can see.

 

Any help would be appreciated.

Link to comment
Share on other sites

Thanks Nic but not quite, open your browser - the error is at the bottom, click on an item then the other error appears - ALL the time

 

refreshing the browser does NOT help

Link to comment
Share on other sites

You have HTML formatting within the php close tag

 

36 <?php
37 }
38 </td></tr></table>
39 ?>

 

should possibly be (although may not depending upon what comes after line 39):

36 <?php
37 }
38 ?>
39 </td></tr></table>

Link to comment
Share on other sites

Yes i was thinking of a similar error sorry!,

Search google for

Fatal error: Call to a member function add_current_page() on a non-object

you should find your solution, its to do with the code in application_top but im not near my code and i cannot rememeber it off the top of my head.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

OK peeps, thanks for your help, got it sorted now. I was trying to actually find out what the problem was thru the programming but when I gave up and reloaded the footer back on from the actual template it all popped up working, still curious as to why it happened though...thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...