DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: 8: Undefined variable: scripturl  (Read 18,000 times)

gri

  • Space Human
  • Participant
  • Joined in 2006
  • *
  • Posts: 112
8: Undefined variable: scripturl
« on: December 25, 2006, 08:47 PM »
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.
« Last Edit: March 19, 2007, 05:38 AM by gri »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: 8: Undefined variable: scripturl
« Reply #1 on: December 26, 2006, 06:58 AM »
$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

  • Space Human
  • Participant
  • Joined in 2006
  • *
  • Posts: 112
Re: 8: Undefined variable: scripturl
« Reply #2 on: December 27, 2006, 08:17 AM »
$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.

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.

Original address: https://www.donationcoder.com/forum/index.php?topic=6721.0