Problem running Mobile Joomla on PHP 5.3

bgtanlo
12 years, 8 months ago
I am currently trying to install Mobile Joomla on our Joomla site version 1.5.
Our website is currently running in PHP 5.3. and I am getting errors like the one below:

Parse error: parse error, expecting `'('' in plugins\mobile\terawurfl.php on line 53

In my local server I tried installing PHP 5.2.9 and the error did not occur.
Does this mean that Mobile Joomla is not yet compatible with PHP 5.3?

Is there any way on how I can make this work in PHP 5.3 without updating the php.ini file? Currently, I don't have access to the said file as we have third-party company hosting our website and i'm only allowed to do changes on the site content and not on the setup.

Thank you very much.
dryabov
12 years, 8 months ago
I have PHP 5.3.4 on my test server, and MJ works well here.
bgtanlo
12 years, 8 months ago
dryabov wrote:
I have PHP 5.3.4 on my test server, and MJ works well here.


have you ever encountered any parse error like the one i posted earlier?
dryabov
12 years, 8 months ago
No, I have few notices/warnings in error_log from other extensions, but none from MJ.
bgtanlo
12 years, 8 months ago
dryabov wrote:
No, I have few notices/warnings in error_log from other extensions, but none from MJ.


When accessing the administrator page for joomla then clicking on Mobile Joomla Plugin, i also encounter the following error:

Parse error: parse error in D:\inetpub\vhosts\XXXXX\httpdocs\XXXXXX\administrator\components\com_mobilejoomla\admin.mobilejoomla.php on line 15

Code Snippet of admin.mobilejoomla.php

if(version_compare(JVERSION,'1.6.0','ge') &&
!(JFactory::getUser()->authorise('core.manage', 'com_mobilejoomla')))
return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));

jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
jimport('joomla.event.dispatcher');

I was wondering if I need to adjust anything in the plugin settings to run php files.
Is this a version compatibility issue?
In local server, i'm using php 5.2.9-2 and it works.
But in my test server, i'm using php 5.3 and both error occurs.
dryabov
12 years, 8 months ago
What PHP5.3 subversion do you use? I tested on 5.3.4, but it's not the latest one.
bgtanlo
12 years, 8 months ago
dryabov wrote:
What PHP5.3 subversion do you use? I tested on 5.3.4, but it's not the latest one.


Sorry for the incorrect info.
Our website is currently running on the following specs:

PHP: 5.1.6-15.el5
MYSQL: 5.0.22-2.1.0.1
APACHE: 2.59-rhel5.build83071218.18
dryabov
12 years, 8 months ago
Unfortunately, I cannot test this environment now (all my test servers have Apache 2.2.x, and PHP 5.1 is compatible with Apache 2.0.x only; the only workaround could be to run PHP 5.1 in CGI mode and I'll try to test this way later).
dryabov
12 years, 8 months ago
Just run MJ on PHP5.1.6, no errors found. So, I don't know what to suggest.
bgtanlo
12 years, 8 months ago
dryabov wrote:
Just run MJ on PHP5.1.6, no errors found. So, I don't know what to suggest.


have you encountered any issues using the plugin on joomla sites running on linux servers?
1

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.