Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Parse error when loading the site on the server

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello,

I am using joomla and the Grid2 template for the first time. It works well on my local server but It doesn't seem to work when I try to put in on-line.

I didn't touch the yth.php template file but the navigator give me this error message:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.348/mutationj/www/templates/zengridframework/includes/yth.php on line 36

Does anyone knows about this?

Thanks for the help

Stéphane
  • stephane's Avatar
  • stephane
  • 3 Month Basic
  • 7 posts
  • Karma: 0
The administrator has disabled public write access.
Stéphane,

To get started, questions!
1) What method did you use to transfer your site from localserve to host (i.e. how or what did your use to backup or compress your localserve site and how did you move it to your host server).?
2) How did you unpack your site once it made it to your host server?
3) Do you have an URL you can share with us (would/could help)?

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
Hello,

Thanks for your quick answer.

1) I uploaded all the joomla files into the distant server using filezilla.

2) I didn't compress it to send it.

3) www.mutationproduction.org

The only thing I changed manually is the Configuration.php file following this tutorial:
var $host = 'localhost'; - this is the address of the server which is hosting your MySQL database
var $user = 'sqluser'; - this is the name of the username which will be used to access the Joomla MySQL database
var $password = 'p@ssw0rd'; - password for MySQL database
var $db = 'j15stable'; - MySQL Joomla database name
var $log_path = '\home\logs'; - the path where any log files will be stored
var $tmp_path = '\home\tmp'; - the path for tmp files


Did I forget to do something?

Thanks

Stephane
  • stephane's Avatar
  • stephane
  • 3 Month Basic
  • 7 posts
  • Karma: 0
The administrator has disabled public write access.
You need to check the Joomla server enviroment, specifically the PHP version.

admin > help > system info

Is it PHP4?
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
I use OVH.com and they have PHP4

I will try again to upload everything from the start tonight using the installation file from the JB_Grid2_Quickstart_J1.5.20_v1.0.7.a

I have to do something else right now.

I will let you know.

Stephane
  • stephane's Avatar
  • stephane
  • 3 Month Basic
  • 7 posts
  • Karma: 0
The administrator has disabled public write access.
The issue is PHP4.

This template framework, and many extensions, will require PHP5.2x as a minimum.

You can maybe force this using .htaccess, but it may be easier to just give your host a call. PHP4 is seriously outdated, updating it for you will take them just a few seconds.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
If the webhost supports it, you may be able to force it to run under PHP5 with just one line in your .htaccess file. See here for details;

kb.siteground.com/article/How_to_have_different_Php__MySQL_versions.html

If that doesn't work you will need to call your host....
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Ive actually just added this to the troubleshooting section of the zgf templates plus the core zgf docs.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hellos,

Thanks for the answers. Adding an .htaccess starts to make it work but there are still problems.

I have to work abroad for a week on other things but I will take the time to get back with the Website development seriously after that and might contact you again then.

Have a good week

Stephane
  • stephane's Avatar
  • stephane
  • 3 Month Basic
  • 7 posts
  • Karma: 0
The administrator has disabled public write access.
Hehe no probs. I cant count the number of silly mistakes Ive made because Ive been working late or too hard :)

Glad you sorted it anyway.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers