Welcome, Guest
Please Login or Register.    Lost Password?

[SOLVED] Error
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: [SOLVED] Error
#189
[SOLVED] Error 5 Months, 4 Weeks ago  
Hello,
I've just installed the module and here is the message I have on my browser:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.323/prothesed/www/plugins/content/faqslider.php on line 24

Can someone tell what I have to do to fix this issue?.
Thanks a lot.

Arno.
Arno
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/18 07:28 By mattfaulds.
The administrator has disabled public write access.
 
#192
Re: Error 5 Months, 4 Weeks ago  
Hi Arno

This is a PHP4 error by the looks of it. What version are you running. You really need PHP5... PHP4 is very old.
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#248
Re: Error 5 Months, 2 Weeks ago  
Hi Mattfaulds,
I have checked out and the version is PHP5.0 ... I don't know what to do?
Thanks.
Arnaud.
Arno
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#252
Re:Error 5 Months, 2 Weeks ago  
I'm getting the exact same error when I install the pluggin and my host is using PHP version 5.2.6.

I've uninstalled the pluggin to get back to a working site.
Frost

The administrator has disabled public write access.
 
#253
Re:Error 5 Months, 2 Weeks ago  
Ok guys, I'll explain the error message step by step:

1) php tries to parse the code
2) it gets as far as line 24 which is public function onPrepareContent( &$article, &$params, $limitstart ) in the code snippet below:
class plgContentFaqSlider extends JPlugin
{
public function onPrepareContent( &$article, &$params, $limitstart )
{
$app = &JFactory::getApplication();


3) you have a version of php that cannot understand the "public function" bit of line 24 - it thinks it is a string which is not allowed here - hence "Parse error: syntax error, unexpected T_STRING"

This syntax (public/private) is a feature of php5.


So, although you seem to be using php5 you must have either:

php processing pointed to a php4 installation
or
php4 and 5 co-installed which I believe can cause this sort of problem


How can you sort this out? Well, there are two options:

1) contact your hosts and ask them to test your installation to see if you can successfully run any code which uses the same type of syntax (public/private functions etc)
2) strip the code of any public/private references (which essentially downgrades it to php4)

I really want to hear if you solve this as I'm 100% convinced that this is not an FAQSlider problem. The only other thing that I can think of is some whitespace being processed as a string on your server...

Good luck and Google around on the error if you don't believe me!
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/16 16:21 By mattfaulds.
The administrator has disabled public write access.
 
#254
Re:Error 5 Months, 2 Weeks ago  
Just in case, I've cleaned all the whitespace. Try replacing faqslider.php with the attached file. The file is found in yourJoomlsFolder/plugins/content/

This attachment is hidden for guests. Please login or register to see it.
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/15 16:40 By mattfaulds.
The administrator has disabled public write access.
 
Go to topPage: 123
Moderators: mattfaulds

Login

Make a Donation...

PayPal Donate

 

© 2009 Content: TrafalgarDesign. Template: Afterburner.