Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Login
Register
News
:
November 21, 2008, 12:19:49 am
RSGallery2 Support Forums
Developers corner
Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened!
(Moderators:
Daniel Tulp
,
Chef Groovy
)
[SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
« previous
next »
Topic Tools
Search this topic
Pages
1
Author
Topic: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}' (Read 8605 times)
«
on:
January 29, 2007, 01:39:27 am »
Hans
Jr. Member
Posts: 66
[SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
If you choose RSGallery frolm the components menu in the back end he gives the following error :
Parse error: syntax error, unexpected '(', expecting '}' in /home/digitaal/public_html/kledi/administrator/components/com_rsgallery2/includes/gallery.class.php on line 304
Regards,
Logged
Hans
Open source Matters
Reply #1
«
on:
January 29, 2007, 01:03:05 pm »
Danny
Newbie
Posts: 6
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hi,
I'm having the same problem too. Is there a solution?
I work with joomla 1.0.12 Ecommerce-edition.
Gr Danny
«
Last Edit: January 29, 2007, 01:16:41 pm by Danny
»
Logged
Reply #2
«
on:
January 29, 2007, 01:52:10 pm »
Hans
Jr. Member
Posts: 66
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Dear Danny,
Do you have a previous version? I installed the SVN560 again and this is working.
Greetz
Logged
Hans
Open source Matters
Reply #3
«
on:
January 29, 2007, 02:01:15 pm »
martin luter
Newbie
Posts: 4
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hi
it looks just like small typo in latest nightly build. in gallery.class.php on lin 304 change from this:
" WHERE gallery_id='{$this->get('id')}'".
to this:
" WHERE gallery_id='{$this->get['id']}'".
i had to modify 2 files (but i dont remember which)
Logged
Reply #4
«
on:
January 29, 2007, 05:03:37 pm »
Danny
Newbie
Posts: 6
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hey Hans,
where can i find the svn 560?
Please help
Logged
Reply #5
«
on:
January 29, 2007, 05:10:55 pm »
Hans
Jr. Member
Posts: 66
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Dear Danny
I sended you previous nightly build [SNV 560] by mail
Regards
Logged
Hans
Open source Matters
Reply #6
«
on:
January 29, 2007, 05:17:08 pm »
Danny
Newbie
Posts: 6
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hi Hans and everybody,
As far as i know i have the solution:
Make the change Martin Luther makes en and ame the following change to rsgallery2.php:
This:
echo "<li>{$kid->get('id')} {$kid->get('name')}";
to this:
echo "<li>{$kid->get['id']} {$kid->get['name']}";
This works for me for as far I've tested it.
There is another problem with the CSS. Could be my template, but the text (on frontend login) beneath 'my galleries' is white on a white background.
I try to include my rsgallery.css where the text is black and readable. (I did'nt change anything except the text color for that part).
Good luck for everyone
Gr Danny
Logged
Reply #7
«
on:
January 29, 2007, 08:01:20 pm »
Jonah
Administrator
Hero Member
Posts: 1411
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hello everyone,
I'm trying to track down what is causing this. ultimately it looks like we'll have to move away from the
complex string syntax
but I would like more information in this as I'm not sure what would cause this.
could i get webserver, php and os info from anyone who has experienced this issue? thanks!
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.
Reply #8
«
on:
January 29, 2007, 09:37:03 pm »
Jonah
Administrator
Hero Member
Posts: 1411
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
also, if anyone has an informative link explaining why php would allow square brackets to be used to make a function call (let alone in place of parenthesis!) I would appreciate it.
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.
Reply #9
«
on:
January 30, 2007, 03:49:10 am »
Danny
Newbie
Posts: 6
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hi Jonah,
Here is my information:
Database Version: 4.1.10-standard
PHP Version: 4.4.0
Web Server: Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7e PHP/4.4.0 FrontPage/5.0.2.2510
WebServer to PHP interface: apache
Joomla! Version: Joomla! 1.0.12 Stable [ Sunfire [eCommerce Edition] ] 25 December 2006 01:00 UTC
I am totally no programmer but what I did with the brackets, did the job and now everything is working fine.
Hope you got your answer.
Gr Danny
Logged
Reply #10
«
on:
January 30, 2007, 01:51:20 pm »
Jonah
Administrator
Hero Member
Posts: 1411
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Thanks Danny. Can anyone else post their php version?
Changing the () to [] will
not
work. All your doing is getting the file to compile, but when the code actually needs to run it will encounter a function instead of an array (which the [] suggests) and error.
It looks like method calls in the complex syntax is not supported in some php 4.* versions. So we will need to alter the code so that it doesn't do that. Should be in 570, check the next nightly.
Jonah
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.
Reply #11
«
on:
January 30, 2007, 01:57:45 pm »
Hans
Jr. Member
Posts: 66
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
Hello Jonah
Same problem as Danny, here my version op PHP
PHP Version: 4.4.4
Web Server:
WebServer to PHP interface: apache
Joomla! Version: Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Logged
Hans
Open source Matters
Reply #12
«
on:
January 30, 2007, 05:11:14 pm »
Jonah
Administrator
Hero Member
Posts: 1411
Re: [SVN-566] Parse error: syntax error, unexpected '(', expecting '}'
ok, thanks for the bug report guys. i've filed a
php doc bug
. rev 570 should work for you.
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.
Pages
1
« previous
next »
Jump to:
Please select a destination:
-----------------------------
RSgallery2 support forums
-----------------------------
=> RSgallery2 bugs & problems
===> Resolved Issues
===> Known Issues
=> Features
=> Display and Templates
=> RSgallery2 modules and plugins (mambots)
-----------------------------
RSGallery2
-----------------------------
=> General discussion
=> Gallery Showcase
=> Template directory
=> Meta Forum
=> Duplicate Threads
-----------------------------
Language translations
-----------------------------
=> General language and translation questions
=> Chinese
=> Danish
=> Dutch
=> English
=> French
=> German
=> Greek
=> Polish
=> Spanish
=> Other languages
-----------------------------
Developers corner
-----------------------------
=> Developer Lobby
=> Nightly Builds for RSGallery2 in Joomla 1.5
=> J15Backport [Closed]
=> Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened!
Print
Advanced search
Powered by SMF 1.1 RC3
|
SMF © 2001-2006, Lewis Media
Pn-Pn Theme by koni.
Loading...