ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > SMF Forum Mods

8: Undefined variable: scripturl

(1/1)

gri:
One of the users of my smf forum has got errors:

8: Undefined variable: scripturl
File: /home/megasmf/public_html/gri/vitation/Themes/default/BoardIndex.template.php (eval?)
Line: 656

and

8: Undefined variable: scripturl
File: /home/megasmf/public_html/gri/vitation/Themes/default/MessageIndex.template.php (eval?)
Line: 656
?board=13.0
.

What does it mean ?


Added on March 19, 2007:
The post is not actual because the forum was moved to another hosting.

But the topic is of great historical significance
because a Word ~Grace~ has appeared in it.

And it was linked to from outside.

mouser:
$scripturl refers to the url of your forum and should be initialized by smf during normal processing.
check the function where the line is that it is reporting the error, make sure any function that refers to the variable says this somewhere near the top:
global $scripturl
which tells php to make the function available.

ps.
gri these are issues that would be more appropriate to ask on smf forum.. unless that message in your sig is true in which case.. maybe you need to figure out a way to get back in the good graces of smf people..


One of the users of my smf forum has got errors:

8: Undefined variable: scripturl
File: /home/megasmf/public_html/gri/vitation/Themes/default/BoardIndex.template.php (eval?)
Line: 656

and

8: Undefined variable: scripturl
File: /home/megasmf/public_html/gri/vitation/Themes/default/MessageIndex.template.php (eval?)
Line: 656
?board=13.0
.

What does it mean ?

-gri (December 25, 2006, 02:47 PM)
--- End quote ---

gri:
$scripturl refers to the url of your forum
and should be initialized by smf during normal processing.
check the function where the line is that
it is reporting the error,
make sure any function that refers to the variable
says this somewhere near the top:
global $scripturl
which tells php to make the function available.
-mouser (December 26, 2006, 12:58 AM)
--- End quote ---

Which file does the line number 656 refer to ?

File BoardIndex.template.php has 467 lines.
File MessageIndex.template.php has 474 lines.

Both files' functions seem have correct $scripturl global declaration.

Navigation

[0] Message Index

Go to full version