topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 6:45 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: 8: Undefined variable: scripturl  (Read 13858 times)

gri

  • Participant
  • Joined in 2006
  • *
  • Posts: 112
  • Space Human
    • View Profile
    • SMF2+ EDITGIFT
    • Donate to Member
8: Undefined variable: scripturl
« on: December 25, 2006, 02: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, 12:38 AM by gri »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: 8: Undefined variable: scripturl
« Reply #1 on: December 26, 2006, 12: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

  • Participant
  • Joined in 2006
  • *
  • Posts: 112
  • Space Human
    • View Profile
    • SMF2+ EDITGIFT
    • Donate to Member
Re: 8: Undefined variable: scripturl
« Reply #2 on: December 27, 2006, 02: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.