TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 119
  • Total: 120
  • @rjen

loads of error messages 8: Undefined variable: scripturl

Started by dvk01uk, May 13, 2012, 10:42:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dvk01uk

Link to my site: http://www.hedgehoghelp.co.uk
SMF version: 2.02
TP version: TP ver. here
Default Forum Language: English
Theme name and version: curve muli-color
Browser Name and Version:   IE9 + FF 12
Mods installed:
1. Join Reason 1.3
2. Curve mobile mod  1.1.1
3. Quick Ban on Account Delete  1.0.1
4. ad Managment  3.0.1
5.Google Member Map  2.6
6. EmailValidator  1.0
7.FancyPosts  0.4
8.Post History  1.03
9.WYSIWYG Quick Reply  2.3
10.Users Online Today  2.0.1
11.TinyPortal  1.107
12. Share This Topic  4.1.2
13. More Spiders  1.2
14. User Agreement Update  1.0.3
15. Separate the sticky topics  1.0.0
16. Admin Toolbox  1.0
17. Simple Audio Video Embedder  2.0.5
Related Error messages:

http://www.hedgehoghelp.co.uk/index.php?topic=6947.0;prev_next=prev
8: Undefined variable: scripturl
File: /home/hedgehog/public_html/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 41

and
http://www.hedgehoghelp.co.uk/index.php?topic=2651.0
8: Undefined variable: scripturl
File: /home/hedgehog/public_html/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 47

error log is completely full of these and similar messages for just about any action by any member or guest
I only updated foprum today from 1.x to 2.0.2

all of them say home/hedgehog/public_html/Themes/default/TPsubs.template.php(127) : eval()'d code and then
this is in then pop up

An Error Has Occurred!
Sorry but the file specified could not be opened: /home/hedgehog/public_html/Themes/default/TPsubs.template.php(127) : eval()'d code



I have checked permissions & it is on 666. I tried 775 and that makes no difference so switched back to 666 

dvk01uk

I have eventually tracked down the fault to the board index block snippet
I have removed that and everything is OK

IchBin

#2
All you need is to add this line to the top of your block code.

global $scripturl;

dvk01uk

Thanks
I will do that when I get round to adding it in again


This website is proudly hosted on Crocweb Cloud Website Hosting.