Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 internal server error when adding 'promoter' #62

Open
Vixxd opened this issue Jun 20, 2017 · 3 comments
Open

500 internal server error when adding 'promoter' #62

Vixxd opened this issue Jun 20, 2017 · 3 comments

Comments

@Vixxd
Copy link

Vixxd commented Jun 20, 2017

I am adding the following to the bottom of my already existing and implemented data.xml for my game project, before

	<promoter>
		<product> ... </product>
	</promoter>

This causes that particular project page not to load with 500 internal server error. I checked the error_log and there is nothing that isn't normally there (PHP Warning: Module 'zip' already loaded in Unknown on line 0).

Do I need to reinstall the press kit and enable a particular setting? I have changed a number of links from http to https within sheet.php (things like youtube embed or the j-query library links), however even removing that/implementing it for the Promoter line made no change:

$promoterxml = simplexml_load_file('https://promoterapp.com/dopresskit/'.$promotercode);

Thanks,
Vicky

@Vixxd
Copy link
Author

Vixxd commented Jun 29, 2017

Bump :(

@Vixxd
Copy link
Author

Vixxd commented Jul 18, 2017

I've stopped using Promoter over this :(

@ker0chan
Copy link

Same here, one of our presskit() page stopped working. After looking around, it seems loading the XML file from Promoter is problematic. Everything runs fine on a local server, but once it's uploaded to our web hosting it stops working.

I enabled the error display with

error_reporting(E_ALL);
ini_set('display_errors', 1);

And this is what I got:

Warning: simplexml_load_file(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /home/****/sheet.php on line 182

Warning: simplexml_load_file(): Failed to enable crypto in /home/****/sheet.php on line 182

Warning: simplexml_load_file(https://www.promoterapp.com/dopresskit/****): failed to open stream: operation failed in /home/****/sheet.php on line 182

Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://www.promoterapp.com/dopresskit/****" in /home/****/sheet.php on line 182

Apparently our web hosting server can't verify Promoter's SSL certificate. PHP 5.6 now verifies the peer's certificate by default when using SSL (see: http://php.net/manual/en/migration56.openssl.php).
Using a SSL certificate checker (like https://www.sslshopper.com) shows us that Promoter's certificate is indeed valid, so it should work fine.
Now, disabling this check could solve the problem, but as pointed in this article: https://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/ it is a terrible idea. Thankfully there's a solution, given in this same article (TL;DR: update your CA root certificate bundle).

I don't have access to this configuration on my side, so I'll write a support ticket to my hosting provider.

Promoter might have updated its SSL certificate, or enabled HTTPS redirection in the past months. Or maybe our hosting provider (and yours/your server) updated to PHP 5.6 recently.
In any case, this should get solved pretty easily, but apparently, it has nothing to do with presskit().

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants