logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

error approving links

Version:


error approving links
fresco
Experienced

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 20
Total Posts: 95
Posted 10/25/04 - 01:49 AM:
quote post
#1
just moved to the new server and on approval of a submitted link got this error on a redirect page - link seems to get approved and listed though

error:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in /home/virtual/site2/fst/var/www/html/link_directory/classes/ onelink.php(103 6) : eval()'d code on line 1
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/25/04 - 10:54 PM:
quote post
#2
"eval()'d code" indicates something in a template. I wouldn't think you'd have any php in the redirect template though.
fresco
Experienced

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 20
Total Posts: 95
Posted 10/26/04 - 08:16 PM:
quote post
#3
when i moved the site (database) some of the fields with html tags in got messed up like category selector - thingies like " and
{MESSAGE}

Continue





well I do not have languages table - wsn built in backup feature refuses to back it up...

could that be the cause?

Edited by fresco on 10/26/04 - 08:49 PM. Reason: more stuff
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/28/04 - 02:45 AM:
quote post
#4
There isn't supposed to be a lanuages table, that was only in very old versions.

I see the line numbers there do show what the issues are though:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in /home/virtual/site2/fst/var/www/html/link_directory/classes/ onelink.php(103 6) : eval()'d code on line 1

This one is your link importance formula.

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in /home/virtual/site2/fst/var/www/html/link_directory/classes/ member.php(846) : eval()'d code on line 1]

That's your member rating formula.
fresco
Experienced

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 20
Total Posts: 95
Posted 10/28/04 - 09:41 AM:
quote post
#5
$rating = ($this->&links * $this->&linkratingnorm()) + ($this->&comments * $this->&commentapprovalnorm())


$importance = ($this->&hitsoutpermonth() + $this->&numcomments) + 6

this is what i have in the settings.


I tried to regenerate everything and got whole line of errors - same ones for every link....


Edited by fresco on 10/28/04 - 09:45 AM. Reason: more stuff
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/28/04 - 05:25 PM:
quote post
#6
Remove those &s

$rating = ($this->links * $this->linkratingnorm()) + ($this->comments * $this->commentapprovalnorm())


$importance = ($this->hitsoutpermonth() + $this->numcomments) + 6
fresco
Experienced

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 20
Total Posts: 95
Posted 10/28/04 - 09:08 PM:
quote post
#7
yep, that was it.

Thank you.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.