News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Error Log: Undefined variable: scripturl

Started by kta, December 17, 2016, 12:12:46 PM

Previous topic - Next topic

kta

Hello,

I have recently taken over a forum and while I have administration experience my coding knowledge is not that great. I noticed the error log is flooded with (I assume) the same error every time a page is generated.


8: Undefined variable: scripturl
/path/blah/Themes/default/ManageMaintenance.template.php (body_above sub template - eval?)
Line: 347



8: Undefined variable: scripturl
/path/blah/Themes/xv12/BoardIndex.template.php (body_above sub template - eval?)
Line: 347


Whatever page is called, always the line 347 is referenced. I did some research and found a almost identical issue here: http://www.simplemachines.org/community/index.php?topic=546224.0

The OP points to an issue with the theme but does not provide any more information. Now the site I took over uses a custom made theme but the person who created it is no longer available. How do I go about fixing this?

Thank you.

kta

Illori

Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

kta

Thank you for your reply. The error meg stays exactly the same, just without the eval.

kta

Illori

can you please post the new error message as copied from the error log?

kta

Sure. This is the error when calling the error log page:


http://url/index.php?action=admin;area=logs;c21606886d9e=adf5349cad2b562146062be420450fe7

8: Undefined variable: scripturl

File: /path/blah/Themes/xv12/index.template.php

Line: 347


kta

Shambles

Quote from: kta on December 17, 2016, 12:33:48 PM
The error meg stays exactly the same, just without the eval.

Not quite. You'll notice the actual failing file is now showing (index.template.php) as opposed to the other two in your original report.

Can you attach your index.template.php file to the next post? The error is suggesting that the line "global ..., $scripturl, ... " is missing or inaccessible.

kta


d3vcho

"Greeting Death as an old friend, they departed this life as equals"

kta

Problem solved. I thank you very much. All of you who helped tracking this down. :)

kta

Advertisement: