Webmastersite.net
Register Log In

Error
Adding sites to data base

Comments on Error

kj47000
Member

Usergroup: Customer
Joined: May 31, 2004

Total Topics: 5
Total Comments: 15
kj47000
Posted May 01, 2006 - 12:18 PM:

Hey Paul,

I just changed host and having a couple problems with the script.

When I add a site to our data base it gives this error.


Parse error: syntax error, unexpected '&', expecting T_STRING or T_VARIABLE or '{' or '$' in /usr/home/kj4700/domains/somedomail.com/bloggers/classes/onelink.php(1036) : eval()'d code on line 1

Parse error: syntax error, unexpected '&', expecting T_STRING or T_VARIABLE or '{' or '$' in /usr/home/kj4700/domains/somedomain.com/bloggers/classes/member.php(846) : eval()'d code on line 1

Also, when I go into edit a link my category dropdown menu is empty. This all worked fine on the other host and our new host says they have all that is under your requirements.

Requirements: PHP 4.1.0+ (or PHP 5) and MySQL 3+. Any operating
system (Linux, Windows, BSD, MacOS, etc).

Thanks,

Ken
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 01, 2006 - 1:08 PM:

That means there's a problem with the link importance formula and member rating formula. Admin Panel -> Settings-> Links and Admin Panel -> Settings -> Users. They both have an & in them I gather... that was a bug with the WSN backups a year or two ago, which matches the version you're using.

In the future, use phpmyadmin or the mysql command line to do your backups. (More recent WSN Links versions simply make a call to the mysql command line.)
kj47000
Member

Usergroup: Customer
Joined: May 31, 2004

Total Topics: 5
Total Comments: 15
kj47000
Posted May 02, 2006 - 1:14 PM:

I done the latest upgrade which I have 3.3.15.

This error just started with this upgrade to 3.3.15

How do I fix this.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 03, 2006 - 7:43 AM:

By reading my above post where I told you the two pages of the admin panel to go to in order to fix the link importance and member rating.
kj47000
Member

Usergroup: Customer
Joined: May 31, 2004

Total Topics: 5
Total Comments: 15
kj47000
Posted May 03, 2006 - 10:33 AM:

Hi Paul,

Im sorry but I cannot figure out a fix from what you posted. Can you please give more details. Im not very good with scripts so I need this to be explained. I dont understand the fix in the post you made. Programmers may but im not experienced as you are. : )
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 03, 2006 - 10:37 AM:

Was going to edit my above post to add this hours ago, but the forum died. Anyhow, the default values I have there for the link and member formualas are
$importance = ($this->hitsoutpermonth() + $this->numcomments) + 6
and
$rating = ($this->links * 2) + $this->comments

Those work.
kj47000
Member

Usergroup: Customer
Joined: May 31, 2004

Total Topics: 5
Total Comments: 15
kj47000
Posted May 03, 2006 - 11:12 AM:

Hi Paul,

Thanks for the update.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.