collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 391
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Error Msg - 8: Undefined variable: scripturl  (Read 8274 times)

0 Members and 1 Guest are viewing this topic.

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Error Msg - 8: Undefined variable: scripturl
« on: October 16, 2008, 04:19:27 PM »
I have installed in smf 2.0.4, the version i use 2.0.5 classic.

It shows this error ever click made on Portal Page.

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 18

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 19

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 20

....
..
.
.
.
.
.
.

..
...

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 31
- Thanks & Regards,
Sudhakar, IT Acumens

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #1 on: October 17, 2008, 12:36:40 AM »
So did you insert some custom blocks? :X
I looked into the Files where i think this could be missing but i did not find one "$scripturl" that is not global included... (But i will look after the work agian).
I thinks it's missed somewhere on one of the language files, it could be possible that also a other mod could produce that error (for example ad sense).

Is only the Simple Portal installed?

Bye
DIN1031
« Last Edit: October 17, 2008, 01:11:34 AM by ???1031 »
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #2 on: October 21, 2008, 02:27:48 PM »
I have activated simple portal for 3 minutes,

All errors (732) | Undefined (732)
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

http://discuss.itacumens.com/index.php?http://discuss.itacumens.com/
Apply Filter: Only show the errors with the same message
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 29

http://discuss.itacumens.com/index.php?
Apply Filter: Only show the errors with the same message
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 29
- Thanks & Regards,
Sudhakar, IT Acumens

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #3 on: October 22, 2008, 12:36:42 AM »
... that's why i ask... did you've installed some other mods beside SPortal... And this only happen if you start SPortal?
(I hope you want tell me that... after you said you enabled it for 3 minutes...).

Do you use any custom php blocks?

And i looked again at the file, but at this possition there is no $scripturl used at that possition...
Code: [Select]
echo '
</td>';
}

echo '
<td valign="top">';

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #4 on: October 23, 2008, 10:29:42 AM »
Yes, i have custom php blocks and here goes the information,

PHP Block - Site Navigations -

Custom PHP - Me and SiNaN, and copied from my old 1.1.6 board.


Code: [Select]
$show_menu = 1; //Set 0 to not show
$menu_label = ''; //Define the block name

if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<font  size="1"><b>Navigation</b></font><br><hr>
<img src="Themes/default/images/menu/home.gif" /> <a href="http://itacumens.com/">Home</a></font><br>
<img src="Themes/default/images/menu/forum.gif" /> <font size="2"><a href="' . $scripturl . '?action=forum">Forum</a></font><br>
<img src="Themes/default/images/menu/blog.gif" height="16" width="16"/> <font size="2"><a href="' . $scripturl . '?action=felblog">Blogs</a></font><br>
<img src="Themes/default/images/menu/chat.gif" /> <font size="2"><a href="' . $scripturl . '?action=chat">Chat</a></font><br>
<img src="Themes/default/images/menu/downloads.gif" /> <font size="2"><a href="' . $scripturl . '?action=downloads">Downloads</a></font><br>
<img src="Themes/default/images/menu/gallery.gif" /> <font size="2"><a href="' . $scripturl . '?action=gallery">Gallery</a></font><br>
<br><font size="1"><b>Statistics</b></font><br><hr>
<img src="Themes/default/images/menu/calendar.gif" /> <font size="2"><a href="' . $scripturl . '?action=calendar">Calendar</a></font><br>
<img src="Themes/default/images/menu/members.gif" /> <font size="2"><a href="' . $scripturl . '?action=mlist">Member List</a></font><br>
<img src="Themes/default/images/menu/online.gif" /> <font size="2"><a href="' . $scripturl . '?action=who">Who\'s Online</a></font><br>
<img src="Themes/default/images/menu/stats.gif" /> <font size="2"><a href="' . $scripturl . '?action=stats">Statistics</a></font><br>
<br><font size="1"><b>Services</b></font><br><hr>
<img src="Themes/default/images/menu/search.gif" /> <font size="2"><a href="' . $scripturl . '?action=search">Search</a></font><br>
<img src="Themes/default/images/menu/staff.gif" /> <font size="2"><a href="' . $scripturl . '?action=staff">Site Staff</a></font><br>
<img src="Themes/default/images/menu/contact_us.gif" /> <font size="2"><a href="' . $scripturl . '?action=contact">Contact Us</a></font><br>
';

echo ' </td>
</tr>
</table>
</div>
<br />';

}

2nd PHP Block - Random Poll -

Custom PHP -


Code: [Select]
global $boarddir;

require_once($boarddir . '/SSI.php');

ssi_recentPoll();

3rd there is a HTML Block, Site Statistics - Recent Visitors

Code: [Select]
<script type="text/javascript" src="http://feedjit.com/serve/?bc=FFFFFF&tc=494949&brd1=336699&lnk=494949&hc=336699&ww=160"></script><noscript><a href="http://feedjit.com/">Feedjit Live Blog Stats</a></noscript>
- Thanks & Regards,
Sudhakar, IT Acumens

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #5 on: October 24, 2008, 01:04:19 AM »
PHP Block - Site Navigations -

Custom PHP - Me and SiNaN, and copied from my old 1.1.6 board.


Code: [Select]
$show_menu = 1; //Set 0 to not show
$menu_label = ''; //Define the block name

if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<font  size="1"><b>Navigation</b></font><br><hr>
<img src="Themes/default/images/menu/home.gif" /> <a href="http://itacumens.com/">Home</a></font><br>
<img src="Themes/default/images/menu/forum.gif" /> <font size="2"><a href="' . $scripturl . '?action=forum">Forum</a></font><br>
<img src="Themes/default/images/menu/blog.gif" height="16" width="16"/> <font size="2"><a href="' . $scripturl . '?action=felblog">Blogs</a></font><br>
<img src="Themes/default/images/menu/chat.gif" /> <font size="2"><a href="' . $scripturl . '?action=chat">Chat</a></font><br>
<img src="Themes/default/images/menu/downloads.gif" /> <font size="2"><a href="' . $scripturl . '?action=downloads">Downloads</a></font><br>
<img src="Themes/default/images/menu/gallery.gif" /> <font size="2"><a href="' . $scripturl . '?action=gallery">Gallery</a></font><br>
<br><font size="1"><b>Statistics</b></font><br><hr>
<img src="Themes/default/images/menu/calendar.gif" /> <font size="2"><a href="' . $scripturl . '?action=calendar">Calendar</a></font><br>
<img src="Themes/default/images/menu/members.gif" /> <font size="2"><a href="' . $scripturl . '?action=mlist">Member List</a></font><br>
<img src="Themes/default/images/menu/online.gif" /> <font size="2"><a href="' . $scripturl . '?action=who">Who\'s Online</a></font><br>
<img src="Themes/default/images/menu/stats.gif" /> <font size="2"><a href="' . $scripturl . '?action=stats">Statistics</a></font><br>
<br><font size="1"><b>Services</b></font><br><hr>
<img src="Themes/default/images/menu/search.gif" /> <font size="2"><a href="' . $scripturl . '?action=search">Search</a></font><br>
<img src="Themes/default/images/menu/staff.gif" /> <font size="2"><a href="' . $scripturl . '?action=staff">Site Staff</a></font><br>
<img src="Themes/default/images/menu/contact_us.gif" /> <font size="2"><a href="' . $scripturl . '?action=contact">Contact Us</a></font><br>
';

echo ' </td>
</tr>
</table>
</div>
<br />';

}

Bug found ;)

Code: [Select]
global $scripturl;
$show_menu = 1; //Set 0 to not show
$menu_label = ''; //Define the block name

if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<font  size="1"><b>Navigation</b></font><br><hr>
<img src="Themes/default/images/menu/home.gif" /> <a href="http://itacumens.com/">Home</a></font><br>
<img src="Themes/default/images/menu/forum.gif" /> <font size="2"><a href="' . $scripturl . '?action=forum">Forum</a></font><br>
<img src="Themes/default/images/menu/blog.gif" height="16" width="16"/> <font size="2"><a href="' . $scripturl . '?action=felblog">Blogs</a></font><br>
<img src="Themes/default/images/menu/chat.gif" /> <font size="2"><a href="' . $scripturl . '?action=chat">Chat</a></font><br>
<img src="Themes/default/images/menu/downloads.gif" /> <font size="2"><a href="' . $scripturl . '?action=downloads">Downloads</a></font><br>
<img src="Themes/default/images/menu/gallery.gif" /> <font size="2"><a href="' . $scripturl . '?action=gallery">Gallery</a></font><br>
<br><font size="1"><b>Statistics</b></font><br><hr>
<img src="Themes/default/images/menu/calendar.gif" /> <font size="2"><a href="' . $scripturl . '?action=calendar">Calendar</a></font><br>
<img src="Themes/default/images/menu/members.gif" /> <font size="2"><a href="' . $scripturl . '?action=mlist">Member List</a></font><br>
<img src="Themes/default/images/menu/online.gif" /> <font size="2"><a href="' . $scripturl . '?action=who">Who\'s Online</a></font><br>
<img src="Themes/default/images/menu/stats.gif" /> <font size="2"><a href="' . $scripturl . '?action=stats">Statistics</a></font><br>
<br><font size="1"><b>Services</b></font><br><hr>
<img src="Themes/default/images/menu/search.gif" /> <font size="2"><a href="' . $scripturl . '?action=search">Search</a></font><br>
<img src="Themes/default/images/menu/staff.gif" /> <font size="2"><a href="' . $scripturl . '?action=staff">Site Staff</a></font><br>
<img src="Themes/default/images/menu/contact_us.gif" /> <font size="2"><a href="' . $scripturl . '?action=contact">Contact Us</a></font><br>
';

echo ' </td>
</tr>
</table>
</div>
<br />';

}

We do not global include anything on a php block ;)
(Add only the global include on the first line)

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #6 on: October 25, 2008, 04:24:49 PM »
yes,

The modification worked well and now my simple portal is working fine.

Thanks a lot.  :applause:
- Thanks & Regards,
Sudhakar, IT Acumens

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Error Msg - 8: Undefined variable: scripturl
« Reply #7 on: October 28, 2008, 02:19:43 AM »
If you have the next time the porblem with scripturl :) and added a new php block.
Add to the block at the first line the global $scripturl; than this error will disapear :).

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).