I have a problem with opencarted payment modules. I use version 3.0.0.0 and all modules are working fine except the ones that are in payment section. I get an Internal Server Error which at logs says:
GET /admin/index.php?route=extension/extension/payment&user_token=LpWyMlFDTymqDs4I6Q1iUwUV6sI3VCet HTTP/1.0 http://eshop.capsport.gr/admin/index.php?route=marketplace/extension&user_token=LpWyMlFDTymqDs4I6Q1iUwUV6sI3VCet Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 303 Apache access
2017-07-12 10:27:38 Warning 94.70.255.140 mod_fcgid: stderr: PHP Fatal error: Can't use method return value in write context in /var/www/vhosts/paokbcstore.gr/eshop.capsport.gr/admin/controller/extension/payment/pp_express.php on line 1282, referer: http://eshop.capsport.gr/admin/index.php?route=marketplace/extension&user_token=LpWyMlFDTymqDs4I6Q1iUwUV6sI3VCet Apache error
2017-07-12 10:28:34 Warning RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
Any possible solutions?
I am using openCart v. 3.0.1.0
and Plesk for web hosting
I was having a similar 500 internal server error when I proccessing the checkout step 6.
My mistake was that, I was imported from an old version of openCart the data of the old Database to the new one.. But, in this senario the new version of openCart has some new table's columns as a saw carefully (such as inside table oc_order: tracking, payment_custom_field and so on). So, I have created these colums again, and now the step 6 from the checkout finally works again..
Iniside Plesk there is a choice saying: error-logs (or you can find it something like: log file, logs files e.t.c.). Inside this file I saw the mistake that says:
"mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'Exception' with message 'Error: Unknown column 'tracking' in 'field list'" that's how I found the issue to my problem..
there are lots of things you could try though:
You could try some of the above...maybe could help you:
clear all caches
disable all extensions and inable them one by one, in order to see which one of them causes the problem..
download the same openCart version that you are using, and upload the checkout core files again.. maybe some of those files broke you code..(although this problem coming from extensions - modules)
check PHP version. Some users in openCart forum said that the problem solved by using the version of PHP 7.
see pp_express what are the needs of this payment proccess (link to github that my help you or maybe ask there: https://github.com/opencart/opencart/blob/master/upload/catalog/controller/extension/payment/pp_express.php)
Related
I know there are a lot of posts about this, but most of them seem to be much later on in the life of a wordpress site - mine is happening on the install.php, so I'm guessing its a more fundamenal issue.
My setup:
Windows 10 (1803)
Nginx (1.15.2)
PHP (7.2.9 - None Thread Safe)
MySQL (8.0 - Community)
The file structure - (in case it has any baring is)
nginx - \Development\nginx\nginx-1.15.2\
PHP - \Development\php\php-7.2.9-nts-Win32-VC15-x64\
nginx is serving files from its /html/ directory, with wordpressin a sub-directory html/wordpress
MySQL has a blank database called "wordpress" created, and is accessible via the command line, and the HeidiSQL application using the credentials for the wordpress site.
I know that php is working as a basic <?php phpinfo(); ?> file outputs the PHP info, and accessing http://127.0.0.1:8080/wordpress/wp-admin/setup-config.php starts the install proces with the screen requesting database info. However submitting this goes to:
http://127.0.0.1:8080/wordpress/wp-admin/setup-config.php?step=2
Which throws the 500 error, blank white screen.
In the nginx access log I can see this:
127.0.0.1 - - [28/Aug/2018:08:56:20 +0100] "POST /wordpress/wp-admin/setup-config.php?step=2 HTTP/1.1" 500 5 "http://127.0.0.1:8080/wordpress/wp-admin/setup-config.php?step=1&language=en_GB" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"
But there is nothing in the nginx error log - literally nothing, it was filled with missing favicon lines but i created a blank one to reduce the noise from that.
When wp-config.php is hard coded with the database info and the line define('WP_DEBUG', true);, accessing install.php gives the error 500 error - but no additional information.
Any idea what the issue is?
Could it be a file permissions issue, I'm assuming nginx is running as my windows user - which is an administrator.
UPDATE:
Windows php doesn't come with an php.ini file (why!!!) so I crabbed one from http://www.reallylinux.com/docs/php.ini and placed it int eh php root directory - this worked and i could switch on erro logging
This now gives me somethign to work on - as I'e got to the route of the issue:
[error] 2200#6728: *9 FastCGI sent in stderr: "PHP Fatal error:
UncaughtError: Call to undefined function mysql_connect() in \nginx\nginx-1.15.2\html\wordpress\wp-includes\wp-db.php:1564
Any one know why mysql_connect() is undefined?
UPDATE 2:
The actual route cause of the issue was this PHP bug:
Cannot connect to mysql 8 using Php 7.2.8 (https://bugs.php.net/bug.php?id=76660)
Downgrading to PHP 7.2.7 and the issue went away... given the changes made in the accepted answer.
mysql_connect() is a function that was there till PHP 5.2, and was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. Ref: PHP Manual
I have a problem with my SilverStripe site after a server upgrade to PHP 5.6. My web host upgraded the server from PHP 5.3 to PHP 5.6 and now a 500 server error occurs on every page.
The message from SilverStripe is:
Sorry, there was a problem with handling your request.
In the server error log files there are no error entries.
In the server access log you can see the 500 error:
ERROR:
[09/Mar/2016:11:12:07 +0100] "GET /Security/login?BackURL=%2Fadmin HTTP/1.1" 500 11398 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36"
Next entry in file is OK:
[09/Mar/2016:11:12:08 +0100] "GET /themes/ustheme/css/us.style.css HTTP/1.1" 304 0 "http://www.example.com/Security/login?BackURL=%2Fadmin" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36"
How do I debug and fix this problem?
When switching PHP-version, your cache needs to be flushed. Switch your site to dev-mode to flush without having to logon. Or just delete your cache-directory (or create a root-directory named silverstripe-cache.)
First try to flush the site cache as suggested by Simon Erkelens.
Sometimes flushing the cache will not work. This may be because the SilverStripe version cannot handle the PHP version.
If our site is on a server with cPanel some web hosts allow us to select the PHP version through cPanel. This feature is not on every server with cPanel but hopefully this becomes more common.
Select PHP version may be found in the cPanel software panel:
On the PHP selector screen there is a PHP version select box allowing us to select a PHP version. To change PHP version select an option from the PHP version select box and press the Set as current button. Flush the site cache to see if the site now works.
I recommend using the newest version of PHP that will work with the SilverStripe site so that it is as secure and stable as possible.
run below command to get rid off from internal server error
/dev/build
if your site is
http://silverdemo.com
then run command like below
http://silverdemo.com/dev/build
it will rebuild the database and models
I have two servers each running a modified version of ZF2 Skeleton Application.
Server1:8080 - REST API that just returns JSON
Server2:8081 - Web client serving our customer
I am getting the famed 'White Screen of Death' in Server 2.
Visit a user's webpage via the route /%s - %s being their username, everything looks fine
User is presented with a status text box and submit button
I click submit with some text, and get the White Screen
I recently added an ability to POST a status update to the page.
server2:80 127.0.0.1 - - [03/Apr/2014:21:52:27 -0700] "POST /myusername HTTP/1.1" 500 357 "server1:8081/hwy9nightkid" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/33.0.1750.152 Chrome/33.0.1750.152 Safari/537.36"
Notice the log file is citing port 80.. not sure why.. but just to double check I looked at my endpoint.. it's working fine for everything else (user's profile data displays)
zf2-server2/module/Api/src/Api/Client/ApiClient.php: protected static $endpointHost = 'http://server2.local:8080';
This site was working great until I added this module's ability to POST data to Server2.. any ideas on how to debug this the Zend way? I'm new so I may just start littering the system with logging information to trace where it's truly stuck, maybe grab an IDE like PHPStorm if that would help.
I know for a fact the POST is received by the Server 1.. my guess is something happened processing that data.. and a 500 error was returned instead, but shouldn't that give me a nice looking error page???
Update & progress with 500 Error
In order to debug, I used an application called Postman
www.getpostman.com
Thanks to this utility for Chrome, I create a simple POST to my service and found an error message was being returned wrapped in JSON.
Error 500 : Table 'tablename' doesn't exist in db.
I'm going to look up how to properly handle errors / json responses that are unexpected.. and how to properly re-route my client to an error page.
Update TL;DR - Seems my Server2 Web Client is failing to either Log this error AND OR display a 500 error page.
OS: windows XP
I am getting above error message:
C:\Documents and Settings\ramesh.d\google_appengine>dev_appserver.py --php_executable_path="c:\php\php-cgi.exe" helloworld/
INFO 2013-05-20 16:23:55,069 sdk_update_checker.py:244] Checking for updates to the SDK.
INFO 2013-05-20 16:23:56,285 sdk_update_checker.py:260] Update check failed: HTTP Error 404: Not Found
WARNING 2013-05-20 16:23:56,285 api_server.py:329] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2013-05-20 16:23:56,285 api_server.py:153] Starting API server at:
INFO 2013-05-20 16:23:56,299 dispatcher.py:164] Starting server "default" running at:
INFO 2013-05-20 16:23:56,299 admin_server.py:117] Starting admin server at:
ERROR 2013-05-20 16:23:59,168 php_runtime.py:199] The PHP runtime is not available because: "c:\php\php-cgi.exe -v" returned an error [-1072365564]
I am look for solution and found that:
in file ..\gae\google\appengine\tools\devappserver2\php_runtime.py
line 138 and 165 should be:
env=os.environ)
if you put after line 156 new line:
print version
you will get the result
but i do not knew what to do next
This is a known bug for Windows XP SP3 users. See https://code.google.com/p/googleappengine/issues/detail?id=9382 for more information and progress on a fix.
That is a problem with python/google dev-server on your windows platform. The environment is not getting set and then PHP can not be executed having problems loading DLLs it needs.
When you execute "c:\php\php-cgi.exe -v" in your standard environment you should not have that error.
You should also see a msgbox you need to click OK on telling about the error-code 0xC0150004.
I am not aware of a solution for that for now, you probably want to file a bugreport for the dev-server. I don't know if this has been already reported even.
Silverstripe is running on my since a few weeks. Recently, I get an Internal Server Error message when I try to access the admin area.
Having a look in the server's error logs, I discovered following hint:
[Mon Apr 05 12:15:26 2010] [error]
[client ...] Premature end of script
headers: main.php
I already was refered to this site: What does the 'premature end of script headers' error mean?
But does anybody had this problem in connection with Silverstripe? Would make it much easier to restrict the scope from where the error is caused.
Regards,
Benedikt
Well... it seems to work now.
Reason:
SilverStripe required a seperate 'Security.ss'-template for the login area. (I wonder, why it didn't was in need of that, before!)
Unfortunatelly the web server displayed a very general 'Internal Server Error'-Message. When i ran the site on another server, SilverStripe was able to display error messages to me.
insert
Director::set_environment_type("dev");
in your _config.php to see more error messages.
dont use this in live mode, only dev mode.