Parse error: parse error, unexpected $
|
whitehead
Joined: 2004-08-05
Posts: 26 |
Posted: Thu, 2006-01-12 13:08
|
|
After a long time of normal operation and no recent changes (apart from upgrading to latest version a couple of weeks ago) I have today received the following parse error preventing gallery from operating...... Parse error: parse error, unexpected $ in /home/enviros/public_html/gallery/g2data/smarty/templates_c/%%3815088694/%%E9^E95^E95855A0%%ImageFrameHead.tpl.php on line 6 I looked elsewhere and saw a suggestion to delete the cache files ala -" try deleting your template and db cache. www.xxxx/gallery2/lib/support/ -> cache -> delete template cache." but in this directory I only have the following files: cache.php Can anyone assist? Should I delete the cache.php file?? Or is the cache the directory %%3815088694 (am I making sense ?!?) Many thanks paul size=9] Gallery version (2.0.2): |
|

Posts: 8194
Try first making sure everything is intact -- FAQ: How can I make sure that my installation files are all intact?
If so, try deleting your template cache using the 'site admin' tool under 'maintenance' -> 'delete template cache'
--Andy
Consider giving back to Gallery
Posts: 26
Could not access the updater I got the following message:
Error (ERROR_PERMISSION_DENIED) :
in modules/core/classes/GalleryController.class at line 153 (gallerystatus::error)
in main.php at line 165 (gallerycontroller::loadcontroller)
in main.php at line 87
in main.php at line 80
PS if its relevant the orig gallery install and update to 2.0.2 was done through Fantastico (but operated fine for weeks)
paul
Posts: 32509
browse to upgrade/index.php
Posts: 26
Many Thanks.
I accessed the upgrader successfully and all the installation files are intact, Still have the parse error though - should I reinstall?
Posts: 32509
already tried browsing to lib/support/ -> cache and clearing the template and db cache?
Posts: 26
Ahh Ahhh, now I see the light (my apologies you have had to walk me through this step by step)
Thanks a million thats cleared it up and its working fine again
Paul
Posts: 21
Can someone tell me why this problem as occured please, I've just accessed my site and I have the same issue. Whitehead/Valiant perhaps you could let me know what steps you followed?
Thanks
scrumpy
PS. This is the error I have ..
Parse error: parse error, unexpected $ in /home/scrump/public_html/gallery/g2data/smarty/templates_c/%%189272952/%%55^55E^55E14245%%SystemLinks.tpl.php on line 40
Posts: 32509
same for you.
why it occurred? no idea what you did.
Posts: 26
I just followed Alinderman's and Valiant's instructions although not being very computer literate I did not fully understand the simplicity of what they were telling me to do. In your browser go to url http://www.yoursite.com/gallery/lib/support (if your path is not http://www.yoursite.com/gallery then change it what the path is). Enter your password when it asks then and check the "template"cache box then click OK.
Posts: 21
Thanks whitehead, deleting the cache information did the trick, I also recreated the thumbs too. I'm assuming that the g2 cache and associated dir's got the knickers in a twist? did you find out exactly what the cause was other than that?
Thank for your prompt reply.
scrumpy
Posts: 1
Hi,
Today I just got t the following error message.
Any idea?
(Ubuntu Linux, Gallery 2)
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/g2/modules/core/classes/GalleryUtilities.class on line 1062
Posts: 32509
FAQ: How can I make sure that my installation files are all intact?
even if i'm repeating myself, but your files are surely not intact. overwrite all files with the ones from gallery 2.zip / tar.gz
and if you're running a php cache/accelerator, clear its cache.
Posts: 6
lol, i just completely reinstalled and toasted my databases before really reading up on the subject. oh well.
... theshep --.
Posts: 3
I am having a similar issue as the other guys. I get this error when i try to log in via joomla Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/thedodge/public_html/components/com_gallery2/classes/config.php on line 91
I went to /lib/support and cleared the cache and it seems to have kind of cleared itself up, however when i go to /upgrade/index.php to check if everything is installed correctly i get this error on step 4
Notice: Only variable references should be returned by reference in /home/thedodge/public_html/gallery2/lib/adodb/adodb.inc.php on line 2847
Line 2847 contains this * Fetch a row, returning false if no more rows.
* This is PEAR DB compat mode.
*
* @return false or array containing the current record
*/
function &FetchRow()
{
if ($this->EOF) {
$false = false;
return $false;
Its really weird because this happened on two different gallery2 installs at the same time. Any help would be really appreciated.
Thanks
Andy
Posts: 32509
seems like you've edited config.php incorrectly.
ant the Notice is because of:
FAQ: I get "Notice: Only variable references should be returned by reference in ", what's wrong?
Posts: 4
I cannot go to /lib/support. I just get a page not found error.
http://www.kduv.com/scrapbook/
Any ideas?
This started after a backup was restored to this site, so I am sure it is a cache issue. But I cannot clear it because I cannot get in. Am I missing something? Can I manually clear the cache? The upgrade wizard to 2.0 seemed to go fine...
Posts: 32509
you should upgrade to 2.1 to get all the features in lib/support/
Posts: 1
I just installed Gallery 2 but no way to get to it.
I did Cache Maintenance
Delete files from the Gallery data cache but no change, I get the same error:
Parse error: parse error, unexpected '<', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/elitjoyc/public_html/gallery3/main.php on line 28
any other advice?