Posts: 5
Threads: 1
Joined: Aug 2009
Hello to everyone,
after downloading, decompressing, uploading and chmod "755" the "data" directory, I go to the related url and I got this:
Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /members/viik/GetSimple/admin/inc/basic.php on line 85
I'm trying this on altervista.org
Can anyone help me please?
thank you guys
Posts: 1,848
Threads: 86
Joined: Aug 2009
the line it's talking about is "public function..." --- i dont see anything wrong with this code ... unless of course some hosts don't have access to the special variable $this.
class SimpleXMLExtended extends SimpleXMLElement{
public function addCData($cdata_text){
$node= dom_import_simplexml($this);
$no = $node->ownerDocument;
$node->appendChild($no->createCDATASection($cdata_text));
}
}
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 104
Threads: 8
Joined: Aug 2009
Chris: I think this has to do with file permissions. Trying to open the XML file, but throwing a weird error
------
I can't design for shit but I can code the shit out of your design
Posts: 5
Threads: 1
Joined: Aug 2009
mhm.. so what can I do to try "get simple"?
thank you guys
Posts: 104
Threads: 8
Joined: Aug 2009
CHMOD 777 EVERYTHING before you run the install script.
------
I can't design for shit but I can code the shit out of your design
Posts: 5
Threads: 1
Joined: Aug 2009
I have chmod 777 also the whole directory "GetSimple" but nothing, same error.
I also have this error from other hosts...
Posts: 104
Threads: 8
Joined: Aug 2009
Can you put a php file of
somewhere on your web server and link that here?
------
I can't design for shit but I can code the shit out of your design
Posts: 5
Threads: 1
Joined: Aug 2009
Posts: 27
Threads: 4
Joined: Aug 2009
2009-08-20, 04:18:59
(This post was last modified: 2009-08-20, 04:23:23 by srdjan.)
Your PHP version is < 5.1.3 (4.4.9).
Can you force/change the PHP version on your host ?
The question is to know why the install scrip continue after the phpversion() test...
Posts: 5
Threads: 1
Joined: Aug 2009
php 5 support enabled!
installation done, it works!
thank you Brian, thank you guys!
Posts: 1,848
Threads: 86
Joined: Aug 2009
Brian - I've made this change in the next release. If any of these things are true, then the install will die instead of showing you the form.
1. PHP is less than 5.1.3
2. SimpleXML is not installed
3. Cannot write to the /data/ folder
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 5
Threads: 1
Joined: Sep 2010
ccagle8 Wrote:the line it's talking about is "public function..." --- i dont see anything wrong with this code ... unless of course some hosts don't have access to the special variable $this.
class SimpleXMLExtended extends SimpleXMLElement{
public function addCData($cdata_text){
$node= dom_import_simplexml($this);
$no = $node->ownerDocument;
$node->appendChild($no->createCDATASection($cdata_text));
}
}
I don't know why you were considering this piece of code, but I'm having problems with changedata.php. It stops exactly at the addCData method.
Do you have any idea?
Thanks.