Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to install
#1
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
Reply
#2
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!
Reply
#3
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
Reply
#4
mhm.. so what can I do to try "get simple"?
thank you guys
Reply
#5
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
Reply
#6
I have chmod 777 also the whole directory "GetSimple" but nothing, same error.
I also have this error from other hosts...
Reply
#7
Can you put a php file of
Code:
<?php
phpInfo();
?>
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
Reply
#8
http://enricog.altervista.org/info.php
Reply
#9
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...
Reply
#10
php 5 support enabled!
installation done, it works!
thank you Brian, thank you guys!
Reply
#11
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!
Reply
#12
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.
Reply




Users browsing this thread: 1 Guest(s)