photo

Roger

shared this question
8 months ago

Employees Involved

photo

PIV Support

Admin

Statistics

7
Comments
1
Views

Share

Tags

1
votes

ERROR 500 when upgrading

Hi,

I tried upgrading today, the system had to do several upgrades but at some point it seems to be stuck which results in an: ERROR 500

What can i do to get it up and running again?

site: http://www.bilquinvastgoed.be/vastgoed/

Thanks

Roger

Add Comment

Comments (7)

photo Employee
1

All 500 errors are SERVER errors and the exact cause will be located in your server's error_log. Chances are, your hosting does not meet the newer version's server requirements which are available at the following link:

http://www.open-realty.org/download.html

If you are attempting to use the one-click update feature it could also be possible your server is not able to perform them and if so you will need to perform a manual upgrade per the OR documentation.

photo
1

is there a file i could upload to check the server?

photo
1

this is what i found in the error log

[Tue May 23 07:05:19.258315 2017] [ssl:warn] [pid 628688:tid 139949102487488] AH01909: http://www.bilquinvastgoed.be:443:0 server certificate does NOT include an ID which matches the server name

photo Employee
1

That error (while serious) is not relevant to this problem. I suspect you are not looking at the correct error_log. Many services create this in the same folder where the software operates, you might check the root of your site or within the /admin folder for an error_log.

Speak with your host and show them the list of requirements if you are unsure if your hosting meets the software requirements.

photo
1

ok, you are right

the php version was older i have put it to 5.6 and checked ioncube and imagemick

thanks

photo
1

Is there a way to test your server to check all the Server Requirements

Found the script below but maybe nice to have a way to test for all Server Requirements

  1. <?php
  2. echo "PHP version: <b>" . PHP_VERSION . "</b><br><br>";
  3. if (PHP_MAJOR_VERSION == 4) {
  4. die('Not supported PHP version');
  5. }
  6. if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 2) {
  7. die('PHP 5.2.x is Not supported anymore, due to security issues.');
  8. }
  9. $extensions = get_loaded_extensions();
  10. echo "<i>Supported loaders:</i><br><br>";
  11. if (in_array('Zend Guard Loader', $extensions)) {
  12. if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 6) {
  13. echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded56.zip</b>' <br>";
  14. } else if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 5) {
  15. echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded55.zip</b>' <br>";
  16. } else if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 4) {
  17. echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded54.zip</b>' <br>";
  18. } else if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 3) {
  19. echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded53.zip</b>' <br>";
  20. } else {
  21. echo "<b>ZendGuardLoader</b> - '<b>Not supported PHP version</b>' <br>";
  22. }
  23. }
  24. if (in_array('Zend Optimizer', $extensions)) {
  25. $isCorrectVersion = true;
  26. $zendOptimizerVer = '';
  27. if (function_exists('zend_optimizer_version')) {
  28. $zendOptimizerVer = zend_optimizer_version();
  29. $zendOptimizerMajorVer = (int) substr($zendOptimizerVer, 0, strpos($zendOptimizerVer, '.'));
  30. $zendOptimizerMinorPart = substr($zendOptimizerVer, strpos($zendOptimizerVer, '.') + 1);
  31. $zendOptimizerMinorVer = (int) substr($zendOptimizerMinorPart, 0, strpos($zendOptimizerMinorPart, '.'));
  32. if ($zendOptimizerMajorVer < 3 || ($zendOptimizerMajorVer == 3 && $zendOptimizerMinorVer < 3)) {
  33. $isCorrectVersion = false;
  34. echo 'Zend Optimizer ' . $zendOptimizerVer . ' - old, required is a minimum of Zend Optimizer version 3.3<br>';
  35. }
  36. }
  37. if ($isCorrectVersion) {
  38. echo "<b>Zend Optimizer</b>" . ($zendOptimizerVer != '' ? " (v$zendOptimizerVer)" : '') . " - use product ZIP ending with '<b>_zendEncoded52.zip</b>'<br>";
  39. }
  40. }
  41. if (in_array('ionCube Loader', $extensions)) {
  42. $isCorrectVersion = true;
  43. $ioncubeVersion = '';
  44. if (function_exists('ioncube_loader_version')) {
  45. $ioncubeVersion = ioncube_loader_version();
  46. $ioncubeMajorVersion = (int) substr($ioncubeVersion, 0, strpos($ioncubeVersion, '.'));
  47. $ioncubeMinorVersion = (int) substr($ioncubeVersion, strpos($ioncubeVersion, '.') + 1);
  48. if ($ioncubeMajorVersion < 6) {
  49. $isCorrectVersion = false;
  50. echo 'ionCube Loader ' . $ioncubeVersion . ' - old, required is a minimum of ionCube Loader version 6.0<br>';
  51. }
  52. }
  53. if ($isCorrectVersion) {
  54. if (!is_int(PHP_MAJOR_VERSION) || !is_int(PHP_MINOR_VERSION)) {
  55. die('Error: unable to decode php version');
  56. }
  57. if ((PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 0) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 6)) {
  58. echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product ZIP ending with '<b>_ionEncoded70.zip</b>' (PHP 7.0.x or PHP 5.6.x)<br>";
  59. } else if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 1) {
  60. echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product ZIP ending with '<b>_ionEncoded71.zip</b>' (PHP 7.1.x)<br>";
  61. } else if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3) {
  62. echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product ZIP ending with '<b>_ionEncoded53.zip</b>' (PHP 5.3.x - 5.5.x)<br>";
  63. } else {
  64. echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - '<b>Not supported PHP version</b>' (All PHP 5.2.X versions)<br>";
  65. }
  66. }
  67. }
  68. //version 2.1
  69. //Note: Always use binary mode when uploading files to your server using FTP
  70. //PLEASE DELETE THIS SCRIPT AFTER INSTALLATION!
  71. ?>

Just to confirm I have not written this code or found it on the internet

photo Employee
1

The best way is to ask your host. Not all requirements can be tested via PHP.

Leave Comment

photo

Attach files...

The file must be a jpg, gif, png, bmp, ico, pdf, doc, rtf, txt, zip or rar no more than 20M