The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 16 posts ] 
Author Message
PostPosted: Fri Feb 10, 2012 9:58 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Aug 07, 2011 5:25 am
Posts: 16
Parse error: syntax error, unexpected '=', expecting '(' in /home/pillin2/public_html/joom251/administrator/includes/framework.php on line 35

I'm getting this error when trying to access administrator backend for the first time; after a fresh /full installation in a new subdirectory I created to test version 2.5.1. I've previously been using version 1.5, am fairly new to JOOMLA! but have created 2 online version 1.5 web sites and several offline/local sites on my computer, ver. 1.5.

Line 35 of framework.php has as follows:

JError::$legacy = true;

The lines surrounding it just for reference if it helps, lines 34 through 38:

// Force library to be in JError legacy mode
JError::$legacy = true;
JError::setErrorHandling(E_NOTICE, 'message');
JError::setErrorHandling(E_WARNING, 'message');
JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage'));

My installation was done at lunarpages hosting, a 2.5.1 installation was provided so I took advantage of letting it do the work for me. But, I get that error when I try to login to the administrator backend.

Help?

Thank you. :)
Laura


Top
 Profile  
 
PostPosted: Mon Feb 13, 2012 9:05 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Aug 07, 2011 5:25 am
Posts: 16
Is there really no one who can help me with this? This post has had a lot of views but no assistance. Since posting this problem, I've deleted all the installation done by the program in lunarpages tools. I installed it on my computer, uploaded the install / all files. Tried going to the sitename.com/administrator login page and .... got the SAME error message posted above. It works on my computer as localhost and will load the site / admin login etc. but I cannot make it work at the remote host which is lunarpages hosting. There is no help at all in lunarpages documentation about 2.5.1. installations, nor this error message.

If anyone has a clue what I might try or should look to change, please let me know. :( I really need this to work!

Thank you.
Laura


Top
 Profile  
 
PostPosted: Tue Feb 14, 2012 5:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Nov 16, 2011 10:46 am
Posts: 17
Hi Laura,
i have the same problem with the joomla 2.5.1 installation, i get the same Error.
i found out that my provider does not support the technical requirements. Maybe you should check this too. This is the site where you can read about the technical requirements.

http://www.joomla.org/about-joomla/technical-requirements.html

i hope this helps...

Good luck and
best regards, Chris


Top
 Profile  
 
PostPosted: Tue Feb 14, 2012 7:58 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Aug 07, 2011 5:25 am
Posts: 16
Thank you, Chris. I would like to believe if they provide the automatic install (now via softaculous; previously via fantastico) for Joomla!, that they also provide correct versions on technical requirement items. However, dumber things happen, right? So I put in a support ticket at lunarpages; I couldn't find version information on their site. I also told them about the error I am receiving, and maybe if I'm really lucky, I'll get some help for the problem even though they've told me before they don't support those extra applications they provide.

I tried installing joomla 1.5 last fall via their fantastico, and it wouldn't work either. Since both installed fine on my computer, I have to think it is something at the online host that is the problem. I hope I don't have to switch hosting to another company - I'm paid up through 2 years or so from now. :( ::sigh::

I will post if I find out the fix! Please do the same if you find out how to solve the problem.

warm regards,
Laura


Top
 Profile  
 
PostPosted: Tue Feb 14, 2012 9:09 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Aug 07, 2011 5:25 am
Posts: 16
When I try to just view the site, not go to admin login, I receive this error:

Parse error: syntax error, unexpected '=', expecting '(' in public_html/joom251/includes/framework.php on line 42

I just tried installing WP to see what would happen. Long story short, errors, and to view site gives error my host is running older version of PHP. aha! And, it's a version not high enough to run JOOMLA 2.5.1. So there's the problem. :( OR at least one...

Does anyone know if it is possible to upgrade PHP on our own; or does the host have to do this? I have no clue.

Suddenly finding myself so disappointed in my web host. :(

Laura


Top
 Profile  
 
PostPosted: Wed Feb 15, 2012 6:34 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Aug 07, 2011 5:25 am
Posts: 16
I continued to experiment with things in my lunarpages hosting. I installed wordpress and it didn't work, either. However wordpress at least gave me an error when I tried to load the subdomain site page that I had an incorrect version of PHP installed. aha! I checked what version it said I had, and it did not match the requirement for JOOMLA 2.5.1. install.

So I called LP, asked how to get the correct version. They said we had to manually go in and select to switch the version; but they did it for me. Now I can install JOOMLA successfully.

ITZJUSTME ... you were right all along, I just had no way to find out what versions I had on the required programs. I wonder if you can call your host and ASK them to upgrade you to the higher version of PHP! Good luck to you.

Now to figure out how to use that responsive web design template....

Warm regards, Laura


Top
 Profile  
 
PostPosted: Wed Feb 15, 2012 11:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Nov 16, 2011 10:46 am
Posts: 17
Hi Laura,

Thank you for your detailed answer. it's right that i have to call my provider, too.
But I do not necessarily need it, i just wanted to find why it doesnt work.
For me its ok when i try this version on localhost.
Does your Joomla installation work now?

BTW:
To check wich version of PHP or MySQL you are running, you can write a short Script, it looks like this:
Code:
<?php
phpinfo();
?>

Upload this file to your Server and run it.
you will get detail Information about the System where this script is running for example the PHP and MYSQL Version.
Best regards

EDIT: Joomla 2.5.1 is running on my Server now. I took a look in the FAQs, and there was the solution for my Problem, so i was able to update the PHP-Version on my own.


Top
 Profile  
 
PostPosted: Wed Feb 15, 2012 10:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Aug 07, 2011 5:25 am
Posts: 16
Yes a joomla install will work fine now. They created a test / subdirectory and did the installation using their installer 'softaculous' and it works just fine.

MY joomla 2.5.1 upload/install from files on my computer would still not have worked because I had not yet uploaded my database from my computer.

Thank you for that code snippet for php / versions. I did it right away and it worked. awesome :D I deleted the file right away too, because I don't know if it is a security risk to leave it there (?) showing my website port info etc. at the bottom of the results page as well.

Glad to hear you got yours working as well. Let's hope this post will help other newbies figure out that they just needed to verify, and not assume, versions of php etc. were going to be correct by their hosting provider.

Warm regards,
Laura


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 5:02 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Feb 25, 2012 4:32 am
Posts: 1
I had the same error. Only check your PHP configuration. I put this in 5.3.10 and works! Good Luck!


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 1:45 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 9:28 am
Posts: 770
Location: Scotland
Had the same error after using jUpgrade to move a 1.5.x site to 2.5.1. which is hosted by 1&1.

Everything tested fine after the install and when I moved the jUpgrade folder to the correct folder to make the site live I got a similar error.

Fixed it by changing the htaccess.txt file to .htaccess and adding the following line

Code:
# Line added to force register_globals OFF
AddType x-mapp-php5 .php

_________________
Geo

http://www.dalserf.org
http://www.improveyoursnooker.net


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 9:40 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Mar 19, 2012 7:02 pm
Posts: 2
itzjustme wrote:
EDIT: Joomla 2.5.1 is running on my Server now. I took a look in the FAQs, and there was the solution for my Problem, so i was able to update the PHP-Version on my own.


Hi Laura and itzjustme,

Congratulations you got your Joomla running! I'm still in trouble with the same error as Laura got.
And my Hosting-Provider(OVH.com) is very slow in support-replying to my problemes :-( So I need to speed up and finde a solution by my self.
I now checked the PHP Version, and it is 4.4.9. In the requirements I've seen a minimum of 5.2.4, I do need an update :)

1. itzjustime, I can not find the specific FAQ you mentioned here, you may point out the link please?
2. You speak about updating PHP by your own, how you did that?
3. What Hosting-Provider are you using, cos I'm thinking about to change soon...
4. Laura, would you recommend LunarPages?

Very best regards!


Top
 Profile  
 
PostPosted: Wed Apr 04, 2012 7:16 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Wed Apr 04, 2012 5:35 am
Posts: 54
Location: THR
GeoUK wrote:
Had the same error after using jUpgrade to move a 1.5.x site to 2.5.1. which is hosted by 1&1.

Everything tested fine after the install and when I moved the jUpgrade folder to the correct folder to make the site live I got a similar error.

Fixed it by changing the htaccess.txt file to .htaccess and adding the following line

Code:
# Line added to force register_globals OFF
AddType x-mapp-php5 .php


I changed .htaccess and added above line into .htaccess and
My php version is "PHP version 5.3.8" and "MySQL version 5.0.95-community" and "Apache version 2.2.21 " but i have same error yet :(


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 2:44 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 28, 2009 3:47 pm
Posts: 9
I added this at the top of my .htaccess file and it worked

Code:
AddHandler php5-script .php


Top
 Profile  
 
PostPosted: Thu Apr 19, 2012 9:32 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Apr 19, 2012 9:28 am
Posts: 2
I had the same error. Only check your PHP configuration. I put this in 5.3.10 and works! Have a Good Luck!My friend !


Top
 Profile  
 
PostPosted: Tue May 01, 2012 6:49 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 20, 2011 7:33 am
Posts: 6
This reply is mostly for the OVH users.
1) check your PHP like itzjustme suggested here:
Quote:
BTW:
To check which version of PHP or MySQL you are running, you can write a short Script, it looks like this:
Code:
<?php
phpinfo();
?>



If it is still set to php 4 then add this to your .htaccess:
Code:
SetEnv PHP_VER 5


This is what I got from OVH support and it solved my problem
If your Joomla is in a folder and not on the root make sure the code is in .htaccess file that is located in the root AND in the joomla folder.

Cheers.


Top
 Profile  
 
PostPosted: Tue May 15, 2012 6:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 09, 2012 8:41 pm
Posts: 8
Location: Winchester, Va
Hey! I found this post after running into the syntax error in framework.php. We recently upgraded a web site from 1.5 to 2.5 (we've actually done this over a handful of times) but this time we encountered an error.

Also take note that this specific client is on LunarPages using PHP 5.2.14.

We used the JUpgrade component to upgrade from 1.5 to 2.5 and after sorting all the kinks out of the template and various extensions we installed, we got it everything to working order. We then removed the old Joomla installation and simply moved the files up one directory to the web site's root directory. For some unknown reason to us we started getting this error.

What solved it for us? I took a look at the HTACCESS file we used with Joomla 1.5 and noticed there were some declarations in there:

Code:
AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml



These of course weren't included in the HTACCESS file for Joomla 2.5. After placing these two lines at the very top, we restored access to our web site - no more errors.

I hope that this helps resolve some of the issues people have described and helps someone else before they pull out their hair too!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 



Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group