Question: Error 500 On Index Page

Error 500 On Index Page

Hello, We bought and installed Simple Stock Manager today. Installation went good without any errors. But when we try to open the application we get an error 500. Checked your documentation

MH

Marc Hofman

Asked

Hello, We bought and installed Simple Stock Manager today. Installation went good without any errors.

But when we try to open the application we get an error 500. Checked your documentation:

  • make sure that your apache mod_rewite is enabled —> Is enabled (all other sites run fine)
  • check that .htaccess file is successfully uploaded and exists in the main directory of installation —> Is okay. Deleting the .htaccess file doesn’t work either…
  • base_url in app/config/config.php —> Is correct
  • check your database settings in app/config/database.php —> Is correct
  • check your folders/files permissions (folders should have 755 and files should have 644 permissions). —> are correct

Apache error log: [Tue Mar 30 09:34:40.356781 2021] [core:alert] [pid 1040322] [client 81.165.179.153:53347] .htaccess: </IfModule without matching <IfModule section

So I believe the error lies in the .htaccess file. Tried a ton of changes without succes.

Any idea how to solve?

Running CentOS 8 with Apache 2.4, PHP 7.4 and MySQL 8 I also tried switching to PHP 7.2 but the problem is the same.

BTW: mod_rewrite is enabled and works correctly.

Thanks!

  • MS

    Mian Saleem

    Answered

    Hello,

    First 3 are for 404 and last 2 only related to 500.

    500 errors are internal server errors and could be due to various reason include software versions, server config and bad code. Please check your server php error logs and let me know the error details so that I can suggest.

    If you are not sure about error logs, you can check with your server admin. If you need you can enable app logs by changing the log_threshold to 1 in the app/config/config.php file and then visit the page again to produce error. Lastly check the latest log file in the app/logs/ folder.

    Thank you

  • MH

    Marc Hofman

    Answered

    Thanks for the quick update! Now I get the following error in app/logs/:

    ERROR - 2021-03-30 11:40:11 --> Severity: Warning --> include(/home/xxx/public_html/stock/themes/errors/html/error_general.php): failed to open stream: No such file or directory /home/xxx/public_html/stock/lib/core/Exceptions.php 182 ERROR - 2021-03-30 11:40:11 --> Severity: Warning --> include(): Failed opening ‘/home/xxx/public_html/stock/themes/errors/html/error_general.php’ for inclusion (include_path=‘.:/opt/cpanel/ea-php72/root/usr/share/pear’) /home/xxx/public_html/stock/lib/core/Exceptions.php 182 ERROR - 2021-03-30 11:41:42 --> Severity: Warning --> include(/home/xxx/public_html/stock/themes/errors/html/error_general.php): failed to open stream: No such file or directory /home/xxx/public_html/stock/lib/core/Exceptions.php 182 ERROR - 2021-03-30 11:41:42 --> Severity: Warning --> include(): Failed opening ‘/home/xxx/public_html/stock/themes/errors/html/error_general.php’ for inclusion (include_path=‘.:/opt/cpanel/ea-php72/root/usr/share/pear’) /home/xxx/public_html/stock/lib/core/Exceptions.php 182

    Any idea?

  • MS

    Mian Saleem

    Answered

    Hello,

    Are you sure you have upload all the files as mentioned in the install instructions. Look like you have missed some, please download the file and try to replace the themes folder again.

    Thank you

  • Login to Reply