My site is working normally, but when I enter an opportunity and click the save button, it is redirected to a page with http 500 error, but the opportunity is saved normally
Please share all info in this format
PHP Version
MySQL version
SuiteCRM Version
and any other server info.
SuiteCRM version: 7.11
php version: 7.1
MySQL version: 5.6.43
Cpanel server
Are you able to do some code changes at index.php
All you need to put these 2 lines just before PHP code starts.’
ini_set(‘display_errors’,1);
error_reporting(E_ALL);
I inserted both lines
Now reproduce issue. Your 500 Error message now print exact cause of issue.
the error continues and I could not find anything in the error logs,
when I edit an opportunity and click on the save button, the same error happen!
Now i get a blank page!
Can you copy content of index.php file?
Here is the code
<?php if (!defined('sugarEntry')) { define('sugarEntry', true); } ini_set('display_errors',1); error_reporting(E_ALL); include 'include/MVC/preDispatch.php'; $startTime = microtime(true); require_once 'include/entryPoint.php'; ob_start(); require_once 'include/MVC/SugarApplication.php'; $app = new SugarApplication(); $app->startSession(); $app->execute();Code looks ok to me.
May be you go and look error logs at Cpanel.
The logs in cpanel is blank too!
The error is throwing Via 500, which is internal server error.
That means some parse error or fatal error happened.
Which must log to a server because now you have error reporting level set to “All”.
You need double check things.
- does update index.php file uploaded on server successfully?
I checked again the errors on cpanel, but still nothing.
And yes, the index.php was uploaded on server sucefully.
May be server logs are somewhere else , not at location you are seeing…
I dont know if helps, bu I found this on error_log inside suitecrm dir
[31-May-2019 10:00:02 UTC] PHP Fatal error: Uncaught Zend_Search_Lucene_Exception: File ‘modules/AOD_Index/Index/Index/segments_du8’ is not readable. in /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene/Storage/File/Filesystem.php:56
Stack trace:
#0 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php(359): Zend_Search_Lucene_Storage_File_Filesystem->__construct(‘modules/AOD_Ind…’)
#1 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene.php(412): Zend_Search_Lucene_Storage_Directory_Filesystem->getFileObject(‘segments_du8’)
#2 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene.php(570): Zend_Search_Lucene->_readSegmentsFile()
#3 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/AOD_Index.php(342): Zend_Search_Lucene->__construct(‘modules/AOD_Ind…’)
#4 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/AOD_Index.php(83): AOD_Index->getLuceneIndex()
#5 /home/znxlwwz21fut/public_html/crmla in /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene/Storage/File/Filesystem.php on line 56
[31-May-2019 13:00:02 UTC] PHP Fatal error: Uncaught Zend_Search_Lucene_Exception: File ‘modules/AOD_Index/Index/Index/segments_du8’ is not readable. in /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene/Storage/File/Filesystem.php:56
Stack trace:
#0 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php(359): Zend_Search_Lucene_Storage_File_Filesystem->__construct(‘modules/AOD_Ind…’)
#1 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene.php(412): Zend_Search_Lucene_Storage_Directory_Filesystem->getFileObject(‘segments_du8’)
#2 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene.php(570): Zend_Search_Lucene->_readSegmentsFile()
#3 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/AOD_Index.php(342): Zend_Search_Lucene->__construct(‘modules/AOD_Ind…’)
#4 /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/AOD_Index.php(83): AOD_Index->getLuceneIndex()
#5 /home/znxlwwz21fut/public_html/crmla in /home/znxlwwz21fut/public_html/crmlatam/modules/AOD_Index/Lib/Zend/Search/Lucene/Storage/File/Filesystem.php on line 56
[31-May-2019 13:42:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/data/SugarBean.php on line 2546
[31-May-2019 13:42:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/data/SugarBean.php on line 2560
[31-May-2019 13:42:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/modules/AOW_WorkFlow/aow_utils.php on line 949
[31-May-2019 13:42:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/modules/AOW_WorkFlow/aow_utils.php on line 962
[31-May-2019 13:43:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/data/SugarBean.php on line 2546
[31-May-2019 13:43:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/data/SugarBean.php on line 2560
[31-May-2019 13:43:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/modules/AOW_WorkFlow/aow_utils.php on line 949
[31-May-2019 13:43:01 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/znxlwwz21fut/public_html/crmlatam/modules/AOW_WorkFlow/aow_utils.php on line 962
Looks like now this is correct position of logs.
You may change the permission of whole CRM folder and then try reproduce issue.
The permission of folders is 755 and for files is 644, is correct?
try to give 777 to modules , because I can see it is trying to read something inside modules folder and not able to read it.
didnt work, i got the same issue!