Posts: 1
Threads: 0
Joined: Sep 2009
2009-09-02, 22:58:18
(This post was last modified: 2009-09-02, 23:06:56 by airweb.)
I've got the same blank page on the installation process. (setup on a bulletproof Ubuntu/Apache2/PHP5)
after commenting the following lines:
/* if (! file_exists($api_file)) {
$curl_URL = ' http://get-simple.info/api.php?r=true&v='.$site_version_no;
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $curl_URL);
$data = curl_exec($ch);
curl_close($ch);
$apikey = json_decode($data);
if ($apikey->status == '6' && $apikey->api_key != '') {
$xml = @new SimpleXMLExtended('<item></item>');
$note = $xml->addChild('apikey');
$note->addCData($apikey->api_key);
if (is_writable($api_file)) {
$xml->asXML($api_file);
} else {
chmod('../data/other/', 0755);
$xml->asXML($api_file);
}
}
}
*/
in admin/inc/functions.php, it's OK.
But what is this f***ing API thing? and why is it required? Is there anything else that the scripts get remotely without letting the user know?
It's my first try of GetSimple to validate if I'll use it in the future, but a web tool that retrieves "I don't know what" from a remote site and store it locally on my web server is not a mark of trust...
Posts: 1,848
Threads: 86
Joined: Aug 2009
@bmf - look at the file it creates. As I mentioned in other posts here it is for a unique 'salt' to protect processes in future relases. I'm not sending any headers with curl, therefore I can tell NOTHING AT ALL about the host that is requesting it. The only data I have on my end is a count of how many times the api was requested overall.
Honestly, there is nothing devious about this at all. If you still don't feel comfortable, then by all means don't use GS
- 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: 83
Threads: 10
Joined: Aug 2009
jjr2527 Wrote:Here are the results of the PhpInfo test. Still no luck thus far. Mamp control panel claims PHP5 is running.
So did you ever get GetSimple running under Mamp? Would love to know the details of what to disable etc.
Posts: 23
Threads: 5
Joined: Aug 2009
Hi,
just installed v1.7 on my host - with same blank page problem.
For v1.7 commenting the lines 51-66 solves the issue:
Code: if (in_array ('curl', get_loaded_extensions())) {
$api_file = '../data/other/authorization.xml';
// if (! file_exists($api_file)) {
// $curl_URL = 'http://get-simple.info/api.php?r=true&v='.$site_version_no;
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_TIMEOUT, 2);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt($ch, CURLOPT_URL, $curl_URL);
// $data = curl_exec($ch);
// curl_close($ch);
// $apikey = json_decode($data);
// if ($apikey->status == '6' && $apikey->api_key != '') {
// $xml = @new SimpleXMLExtended('<item></item>');
// $note = $xml->addChild('apikey');
// $note->addCData($apikey->api_key);
// $xml->asXML($api_file);
// }
// }
}
Posts: 1,848
Threads: 86
Joined: Aug 2009
interesting... what are the specs of your server? Can you attach the part of phpinfo(); that talks about curl?
- 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: 23
Threads: 5
Joined: Aug 2009
ccagle8 Wrote:interesting... what are the specs of your server? Can you attach the part of phpinfo(); that talks about curl?
sure..
here it is: Code: curl
cURL support enabled
cURL Information libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3 libidn/1.0
Posts: 1,848
Threads: 86
Joined: Aug 2009
is this a windows or linux box?
- 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: 23
Threads: 5
Joined: Aug 2009
ccagle8 Wrote:is this a windows or linux box? its a linux box - suse linux
Posts: 2
Threads: 0
Joined: Aug 2009
2009-12-02, 19:50:00
(This post was last modified: 2009-12-02, 20:03:21 by jeckyl.)
I'm having the same issue with 1.71 on my apache/linux box with php 5.3.1.
Commenting the lines 41-51 solves it.
Code: curl
cURL support enabled
cURL Information 7.19.7
Age 3
Features
AsynchDNS No
Debug No
GSS-Negotiate No
IDN No
IPv6 Yes
Largefile Yes
NTLM Yes
SPNEGO No
SSL Yes
SSPI No
krb4 No
libz Yes
CharConv No
Protocols tftp, ftp, telnet, dict, http, file, https, ftps
Host x86_64-unknown-linux-gnu
SSL Version OpenSSL/0.9.8l
ZLib Version 1.2.3.3
This was already present in earlier versions, by the way.
Posts: 2
Threads: 0
Joined: Jan 2010
2010-01-23, 23:19:21
(This post was last modified: 2010-01-23, 23:24:04 by banter.)
Having the same issue 2.0 beta 2 and 1.71.
Code: cURL support enabled
cURL Information libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3
Also:
Code: Notice: Undefined variable: i18n in /home/admin/inc/plugin_functions.php on line 38
Notice: Undefined variable: inter in /home/admin/inc/theme_functions.php on line 93
Posts: 23
Threads: 5
Joined: Aug 2009
just wanted to mention that this problem still exists in v2.01
As in previous versions I found out that uncommenting parts of the install.php solves the problem-
I uncommented lines 122-144 in v2.01:
Code: // # salt value generation
// $api_file = GSDATAOTHERPATH.'authorization.xml';
//
// if (! file_exists($api_file)) {
// if (defined('GSUSECUSTOMSALT')) {
// $saltval = md5(GSUSECUSTOMSALT);
// } else {
// if (in_arrayi('curl', $php_modules)) {
// $apikey = generate_salt();
// if ($apikey->status == '6' && $apikey->api_key != '') {
// $saltval = $apikey->api_key;
// }
// }
// }
// $xml = @new SimpleXMLExtended('<item></item>');
// $note = $xml->addChild('apikey');
// $note->addCData($saltval);
// $xml->asXML($api_file);
// }
# get salt value
// $data = @getXML($api_file);
// $APIKEY = @$data->apikey;
Posts: 972
Threads: 27
Joined: Aug 2009
wizzy: Did you check the latest beta version? Only errors reported about that version can really be taken into account as 2.01 will be phased out soonish.
Also, please be sure to enable debug mode so errors will show up. PHP will never stop on an empty page, it’s just that error messages are not being displayed when debug mode is not enabled.
Posts: 23
Threads: 5
Joined: Aug 2009
Zegnåt: in the latest beta version you mentioned I was not able to reproduce the error - well done !
Posts: 2
Threads: 0
Joined: Sep 2010
Hello everybody
I was trying to install GetSimple 2.01 on my localhost, and encountered the blank page install problem as well.
(while installing on a remote host, no problems were encountered)
How I resolved it :
turned on error displaying in my php.ini file :
display_errors = On
display_startup_errors = On
It turned out my php setup had the following errors:
in the dynamic extensions section :
extension=json.so
was commented out, so I changed that
in the [Date] section
date.timezone =
was not set, so I changed it to my value : 'Europe/Paris'
(and enabled debug mode in gsconfig.php as stated by Zegnåt)
Restarted my http daemon, and it worked!
Posts: 5
Threads: 1
Joined: Sep 2010
I have installed GetSimple_2.01 on ubuntu which worked perfectly. Now I have a specific Redhat Enterprise server with older PHP and less modules and it gives the same problems.
I had to install json module within PHP by hand and remove line 122-144 from admin/install.php. It works for install.php. But now I have the same problem with setup.php: it gives a white screen as result. If I now return to the main URL it has a loop defined.
I can see that the data/other/user.xml has been created, but nothing more.
Hope you can help.
Herman Suijs
Posts: 972
Threads: 27
Joined: Aug 2009
Please enable debug mode, that way the page wont be blank and we will know what’s going wrong.
Also, what version of PHP are you using?
Posts: 5
Threads: 1
Joined: Sep 2010
Zegnåt Wrote:Please enable debug mode, that way the page wont be blank and we will know what’s going wrong.
Also, what version of PHP are you using?
Been on holiday and don't have the problem environment at hand all the time. I didn't get to enable debug mode yet.
I created an install on my Debian system and installed on a RedHat 5, Apache 2.2 and PHP 5.1.6. I just copied the data directory and theme directory to the other environment. This works. But when I go to admin console and edit a page, I get a blank page on changedata.php. I figured out that the script just fails at the first line with $note->addCData($title);.
It seems that the SimpleXMLExtended object exists and can be instantiated, but the only method it contains does not work.
I guess the problem with the installer was kind of the same, because it created user.xml but failed on creating website.xml
I hope someone can help.
Thanx.
Posts: 5
Threads: 1
Joined: Sep 2010
I've read that there are some problems with SimpleXML and PHP before 5.2.7. Can this be the problem?
And if it is do I need to rewrite part of the code with XML DOM library ?
http://php.net/manual/en/ref.simplexml.php
I hope you can help.
Thanx.
Posts: 972
Threads: 27
Joined: Aug 2009
hsuijs Wrote:I created an install on my Debian system and installed on a RedHat 5, Apache 2.2 and PHP 5.1.6. Since many functions broke, and we had compatibility issues like this one, we have dropped compatibility with PHP < 5.2 all the way ( see our requirements). Even PHP.net only states stable downloads for 5.2 and 5.3 on their homepage and I’d recommend you update to a more stable PHP version before trying to run GetSimple.
If the problem is with SimpleXML it might be fixable by using the DOM library. Maybe someone has time to look into that but it will not be incorporated with GetSimple.
|