Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 08, 2016, 06:11:59 PM
  • Proudly celebrating 10 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 7558 times)

gri

  • Participant
  • Joined in 2006
  • *
  • Posts: 112
  • Space Human
    • View Profile
    • Donate to Member
8: Undefined variable: scripturl
« on: December 25, 2006, 02:47:15 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.
Your Gritoadmixes to Gri | Your Gritoadmixes to App103 | ~Gri to App103~
First Human banned by Simple Machines of the Earth
« Last Edit: March 19, 2007, 12:38:08 AM by gri »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,421
    • 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: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
    • Donate to Member
Re: 8: Undefined variable: scripturl
« Reply #2 on: December 27, 2006, 02:17:35 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.
Your Gritoadmixes to Gri | Your Gritoadmixes to App103 | ~Gri to App103~
First Human banned by Simple Machines of the Earth