Welcome, Guest
Please Login or Register.    Lost Password?

Syntax ERROR
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Syntax ERROR
#27
Syntax ERROR 8 Months, 1 Week ago Karma: 0
Hi,
thank for your work!
I have just install Photoblog on a joomla 1.5 website.
Nut i have this error :

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/a/annuaire/www/articles_bateaux/administrator/components/com_photoblog/classes/photoblog.php on line 13

I show you the beginning of code :

Code:

<?php
/**
* @package Photoblog
* @copyright Copyright (C) 2009 Marco Beierer / webguerilla.net. All rights reserved.
* @license GNU/GPL v3, see LICENSE.php
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

class Photoblog extends JObject
{
public $params;
public $title;
public $description;
public $labelposition;
public $thumbsize;

/**
 * constructor loads config from the database
 */
public function __construct()
{



can u please help me ?
I have download : Photoblog Gallery Component (Full)
stagos
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/07/06 11:30 By stagos.
The administrator has disabled public write access.
 
#28
Re:Syntax ERROR 8 Months, 1 Week ago Karma: 0
So the problem is that we can not use it on php4.x.x server !
Shame.
stagos
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#31
Re:Syntax ERROR 8 Months ago Karma: 2
Hey,

that's correct, but maybe your provider will update the php module, if you contact him...
Or have a look at your admin panel (of the provider, not joomla) maybe there is a possibility to switch between the php version 4 and 5...

Best regards
Marco
Marco
Senior Boarder
Posts: 56
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#110
Re:Syntax ERROR 1 Month, 3 Weeks ago Karma: 0
Wenn in der .htaccess dieser Zusatz eingetragen wird:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

funktioniert das auch mit einer php-Version unter 5.
klausb
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#112
Re:Syntax ERROR 1 Month, 3 Weeks ago Karma: 2
Hallo Klaus,

danke für den Hinweis, dies funktioniert allerdings nur, wenn bereits PHP 5 auf dem Server installiert ist, auf dem Webspace aber standardmäßig nur PHP 4 unterstützt.

----------------------------------------

thanks for the hint, but this solution only works, if the server have already installed PHP 5...

Best regards, Marco
Marco
Senior Boarder
Posts: 56
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1