RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 03, 2008, 11:41:04 pm
+  RSGallery2 Support Forums
|-+  Developers corner
| |-+  Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened! (Moderators: Daniel Tulp, Chef Groovy)
| | |-+  [SVN-569] Parse error: syntax error, unexpected '(', expecting '}'
Advanced search
  « previous next »
Pages 1
Author
Topic: [SVN-569] Parse error: syntax error, unexpected '(', expecting '}'  (Read 4011 times)
« on: January 30, 2007, 02:24:32 pm »
Hans Offline
Jr. Member
**
Posts: 66

WWW

Hello

Following error in RSGallery
Parse error: syntax error, unexpected '(', expecting '}' in /home/c1220twi/public_html/home/components/com_rsgallery2/rsgallery2.php on line 161

Joomla 1.0.12
PHP 4.4.4

Grtz
Hans
Logged

Hans

Open source Matters
 
Reply #1
« on: January 30, 2007, 05:02:59 pm »
Hans Offline
Jr. Member
**
Posts: 66

WWW

Solution :

Change line 161 in  / components / com_rsgallery2 / rsgallery.php to

echo "<li>{$kid->get['id']} {$kid->get['name']}";

Change line 304  in administrator / components / com_rsgallery2 / includes / gallery.class.php  to

 " WHERE gallery_id='{$this->get['id']}'".

And it works again Cheesy
Gr
Logged

Hans

Open source Matters
 
Reply #2
« on: January 30, 2007, 05:13:17 pm »
Jonah Offline
Administrator
Hero Member
*****
Posts: 1414



i have fixed all instances of this in rev 570.  please note that using the square brackets will not work - you are only getting the file parsed, it will error on runtime.  more info http://rsgallery2.net/component/option,com_smf/Itemid,14/topic,5952.0
Logged

Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.
 
Print  Pages 1
« previous next »
Jump to: