[SOLVED] parse error -> eval()'d code

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-05-2007, 02:53 AM
New Pligger
 
Join Date: Oct 2007
Posts: 6
I've done a search for this problem but I may be the lucky first to experience it.

I just did an upgrade from 9.7 to 9.8 (actually, it was all fresh code based on a Fantastico install over at DreamHost.com, but with an existing DB that had already been upgraded to 9.8). MySQL 5 and PHP5.

Everything went fine except that above the blocks on the right (using the 'yget' template) I get this error:

Code:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/.tomkin/pligg/pligg/class.template.php(745) : eval()'d code on line 10
You can visit the bug live by going here.

After going to another page I get a different (yet similar) error and it refuses to display blocks at all until I clear the templates_c dir and we get the original error again and blocks reappear. I've looked at the offending code, but I'm afraid my PHP skills aren't up to the tasks of seeing the bug (if there is one).

Any ideas would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 10-05-2007, 04:06 AM
New Pligger
 
Join Date: Sep 2007
Location: SF
Posts: 13
Which modules did you try to install? Something similar had happened to me when I tried to install the (Sidebar stats)
Reply With Quote
  #3 (permalink)  
Old 10-05-2007, 04:38 AM
New Pligger
 
Join Date: Oct 2007
Posts: 6
Quote:
Originally Posted by motang View Post
Which modules did you try to install? Something similar had happened to me when I tried to install the (Sidebar stats)
I certainly did install some modules. But at the moment I can't tell you which ones because, for some reason completely beyond me (cos I didn't change any configs) I can't access my site now.

Now I'm getting this:
Code:
Warning: file_get_contents(./../libs/lang.conf) [function.file-get-contents]: failed to open stream: No such file or directory in /home/.tomkin/marshanna/karmacino.com/pligg/pligg/class.config.php on line 49
Could not open ./../libs/lang.conf
Reply With Quote
  #4 (permalink)  
Old 10-05-2007, 04:41 AM
New Pligger
 
Join Date: Oct 2007
Posts: 6
Quote:
Originally Posted by motang View Post
Which modules did you try to install? Something similar had happened to me when I tried to install the (Sidebar stats)
Scratch that, I can tell you cos I got phpmyadmin. So according to the modules table I've got:
Javascript Effects Pack
Admin Modigy Language
Embed Videos
Page Statistics
Sidebar Stats

I hadn't thought that these could cause problems, but you've got a point. Some of these are in the early stages of development.
Reply With Quote
  #5 (permalink)  
Old 10-05-2007, 04:53 AM
New Pligger
 
Join Date: Oct 2007
Posts: 6
I just tried switching off all the modules one by one using phpmyadmin. Didn't make any difference though. And the error message is bulldust because I checked the files and their permissions and all seems good.
Reply With Quote
  #6 (permalink)  
Old 10-05-2007, 04:53 PM
New Pligger
 
Join Date: Sep 2007
Location: SF
Posts: 13
As I am sure that you already have a great amount of experience with Pligg, the following guide might not be helpful (Scriptful » How To Install Pligg Beta 9.6) but I have used the same to do my past installs. The error messages are sometimes rather a little bit misleading so I feel you on that end. Did you clear the template_c folder after disabling the modules, doing so sometimes seems one of the pointer that people get here. I will keep brainstorming maybe I can come up with something - good luck in the mean time - which built did you use btw? You tried to upgrade or?
Reply With Quote
  #7 (permalink)  
Old 10-05-2007, 05:07 PM
marketwizard's Avatar
New Pligger
 
Join Date: Oct 2007
Posts: 8
I was having a similar problem and this is how I fixed it:

1. Disabled all mods AND removed the mods through admin.
2. Cleared templates_c in the root directory AND templates_c in the WWW directory.

This solved the problem for me. So I don't know which module caused the problem, but I believe it was the "nifty corners" module because it requires a specific template.

Cheers!

Capital Networking

Investment Capitalist

Proprietary Trading
Reply With Quote
  #8 (permalink)  
Old 10-05-2007, 08:01 PM
New Pligger
 
Join Date: Oct 2007
Posts: 6
I'd like to say thankyou to motang and marketwizard for the advice. I just got my site back in (apparently) full working order.

For the record, here's what I did - and note that I had to do ALL of these actions to get the desired result:
1. switched off all the modules. I had to do this through phpmyadmin because I didn't have access to the pligg admin.
2. deleted all the files in 'templates_c' AND all the files in 'cache'. (note: previously i was deleting the templates_c files without any result, so it's clear the cache has to be cleared also).

It may also be worth noting that I now have the flash video module working again so bugs in that one have to be ruled out. It could easily be one of the others though (see my list above).

Thanks again!
Reply With Quote
  #9 (permalink)  
Old 10-05-2007, 08:14 PM
New Pligger
 
Join Date: Sep 2007
Location: SF
Posts: 13
Wow, I am glad you got it to work in the end, so you had to clear the 'cache' as well. - Are you referring to the browser 'cache' or the server? Just wondering, since as a FF user the browser 'cache' also plays tricks with one every now and then.
Reply With Quote
  #10 (permalink)  
Old 10-06-2007, 01:47 AM
New Pligger
 
Join Date: Oct 2007
Posts: 6
Quote:
Originally Posted by motang View Post
Wow, I am glad you got it to work in the end, so you had to clear the 'cache' as well. - Are you referring to the browser 'cache' or the server? Just wondering, since as a FF user the browser 'cache' also plays tricks with one every now and then.
The server cache. But it proably wouldn't hurt to clear browser cache also in order to remove that variable too.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Complete solution to approve the story after being submitted redwine Questions and Comments 39 06-18-2009 02:39 PM
[SOLVED] RSS Parse error: syntax error? obrien Questions and Comments 2 02-18-2009 05:56 PM
[SOLVED] Google Analytics Code not working sach4isha Questions and Comments 3 12-22-2008 10:53 AM
HELP: Continuos parse errors when trying to change the template code juanmartinbravo Questions and Comments 7 01-26-2008 05:03 AM
[SOLVED] Email password confirmation code xman Questions and Comments 4 01-19-2008 07:52 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development