Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 117
Total: 117

Author Topic: Undefined variable Admin.template.php (eval?) Line 681  (Read 16159 times)

0 Members and 1 Guest are viewing this topic.

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Undefined variable Admin.template.php (eval?) Line 681
« on: December 27, 2006, 05:20:44 am »
Gallery Pro Latest version..
Hi there. I just did a transulation to Dutch. Al went whell but i see some log errors. I need help please..

---ONE ERROR WHATS THIS AND WHAT I NEED TO DO.
Undefined variable: first
Bestand: d:\web root\whw\Themes\default\Admin.template.php (eval?)
Regel: 681

--SECCOND ERROR.
Undefined variable: first
Bestand: d:\web root\whw\Themes\default\UserGallery.template.php (eval?)
Regel: 681

Please help me. Thanks to all

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #1 on: December 27, 2006, 08:40:33 am »
I am not sure if that is something to do with the gallery. Has anly mods been installed recently? Since that error seems to be on the same line check out line 681 on those two files and see if there is a variable called first
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #2 on: December 27, 2006, 10:15:41 am »
Whell the can you please explain what to search for in the two files? Because i'm a Visual Basic programmer and new in PhP programming. hihi.What schout i do first. Checkt both files and if the variable is not called fist than what.  What lin should i insert the two files. Can you please discribe in points how to do that.

Thanks and its an Super Script.
Learning PhP and Sql.  ???

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #3 on: December 27, 2006, 10:29:32 am »
Another VB programer I used to be VB6 programmer a while back. 

I use a text editor like textpad then would search each file on that line and see if there is a variable called $first If you use a text editor they normally have an option to search all files in a folder and you can do that and search for $first and see what file it occrurs in.


Or run this query
REPLACE INTO smf_settings
   (variable, value)
VALUES ('disableTemplateEval', '1');
To see the exact file it occrus in I think

http://www.simplemachines.org/community/index.php?topic=50227.0
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #4 on: December 27, 2006, 10:46:59 am »
Great an Another VB programer Hello my Collega.. Hihi Whel, i must tel you. Visual Basic, and when you try to learn another language, that needs time. hihi. I did some projects, and the Dutch Visual Back-up a multi backup app. i did wrote for the dutch tel. Comp. oke.

But when i did the Query, And i find the $Frist what then. please help a coll.  ;D

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #5 on: December 27, 2006, 10:49:00 am »
I need to see the code in order to say what to do next.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #6 on: December 27, 2006, 10:52:22 am »
Shel i send you the two files.?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #7 on: December 27, 2006, 10:55:58 am »
Ok.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #8 on: December 27, 2006, 11:02:13 am »
Oke here the come.. :P
« Last Edit: December 27, 2006, 11:17:23 am by SMFHacks »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #9 on: December 27, 2006, 11:20:17 am »
Didn't find $first in those files check out.
Run this query
REPLACE INTO smf_settings
   (variable, value)
VALUES ('disableTemplateEval', '1');

Visit some pages then check your error log and look for the error and the filename
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #10 on: December 27, 2006, 11:31:19 am »
Oke i did. Now the error is gone but the problem is, Now is appearing in this file
index.template.php. See error log now :

Undefined variable: first index.template.php line: 681
I did search the file and the $first is there. What should i do now?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #11 on: December 27, 2006, 11:32:16 am »
Need to see the code of that file.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #12 on: December 27, 2006, 12:22:05 pm »
Oke i send it now.  If can somting in return? i by glad my vriend.  send it now!

Offline pvisser

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #13 on: December 27, 2006, 12:27:14 pm »
Here it is . These files have the $first variable

But the index.template is the error one

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Undefined variable Admin.template.php (eval?) Line 681
« Reply #14 on: December 27, 2006, 12:55:15 pm »
File Attached not sure if that would help the problem.  I could not find line 681 in index.template.php and really did not see anything wrong.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
8020 Views
Last post January 19, 2007, 11:13:02 pm
by Tim
0 Replies
3093 Views
Last post April 21, 2009, 06:46:26 pm
by drhamad
5 Replies
5588 Views
Last post January 10, 2010, 12:45:58 pm
by SMFHacks
0 Replies
2481 Views
Last post January 01, 2014, 11:52:52 am
by stumpimario
6 Replies
1367 Views
Last post March 28, 2022, 10:21:16 am
by Shades

+- Recent Topics

Please Help! by SMFHacks
Today at 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal