Error 500 on some product's page Magento - magento

I can't find solvation for this problem. Some products is OK, some return me 500 error (without timeout).
Debug mode gave me nothing interesting (identical errors on OK-pages and noOK-pages).
Logs are empty.
Magento 1.9.2.1.

500 is PHP error so please check view.phtml file find out error.

As advice: enable debug mode of your Magento system.
1)
In index.php uncomment this line:
#ini_set('display_errors', 1);
And add into your .htaccess
SetEnv MAGE_IS_DEVELOPER_MODE "true"
Then is a chance that you can see an errors
2)
In addition you can check your logs in /var/log folder
3) check your server logs. Error 500 usually logged in default server logs

500 is PHP error.
Check in template file, try to debug the php code (should in view.phtml file)
I got the same issue and i fixed it by debug in view.phtml file. The code calls a function in the module that i disabled.

Related

Laravel-Project deployment via FTP

I want to deploy my Laravel-Project but it always shows me this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My Server Structure is like that:
/
/protected --> All Files and Folders within the project (+ /node_modules & /vendor) except the /public-folder
/public_html --> all Files and Folders within the /public-folder
I already changed the permissions for the /storage-folder and I already changed the paths in the /index.php to
require __DIR__.'/../protected/vendor/autoload.php';
and
$app = require_once __DIR__.'/../protected/bootstrap/app.php';
Any ideas?
place all the files from your localhost (htdocs) to public_html. Also make sure there is no any redirection in your domain-redirection on your hosting server.
The main reason of the internal server error is that your domain is not pointing the directory which you define.
In my case, the index.php file is
require DIR.'/../vendor/autoload.php';
$app = require_once DIR.'/../bootstrap/app.php';
Do all the changes one by one, this will work in your case hopefully. I have mentioned the reference link below please check
https://laracasts.com/discuss/channels/laravel/laravel-deploying-to-server-using-ftp

How to issue 500 Internal Server Error after true debug in laravel?

I create project with Laravel 5.2, After true debug in .env, show 500 Internal Server Error in localhost:8000 ! and after false debug in .env dont't show any error in localhost:8000.
How to issue this problem?
Type the command php --ini
Open the first file in the list with the name of php.ini
search for ;display_errors = Off and change it to display_errors = On
Then the blank 500 page should now contain text detailing the issue.

Magento 1.9 Installation Error

I am trying to install magento 1.9 on my web hosting server .
I ftp-ed the files into my hosted website but experience the following error when i try to access my URL.
Fatal error: Class 'Mage_Core_Controller_Request_Http' not found in /home/bf/public_html/app/code/core/Mage/Core/Model/App.php on line 1238
I tried a google search but i am unable to find anything relevant .
Just download the Fresh copy from Magento community again. Also make sure that your server has all the prerequisite for Magento as mentioned in below link.
http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html
Please make sure that below files exist in this directory
app/code/core/Mage/Core/Controller/Request/Http.php
1.Make sure you have enabled curl on your server and with have right file permission.
2.Make sure file should exist on following path:
/home/bf/public_html/app/code/core/Mage/Core/Controller/Request/Http.php
3.Make sure compilation mode is disabled.
/home/bf/public_html/includes/config.php
Every thing inside should be commented.
4.If it does not work, you have to debug this.
Open index.php in root and add these line of code,
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
It will show you why error is coming.Once you will find the root cause, you can get the solution on google or any forum.

Magento Error log record file isn't created under `/var/report`

The error log record number created isn't found under var/report and i cannot access the backend.
`Exception printing is disabled by default for security reasons.
Error log record number: 148013902355`
How can i solve this ?
I cannot read the error it has printed on that particular log number. It's in remove server and showing in backend mysite.com/admin.
Update : I can see error after (allowing developermode and enabling to display error in root/index.php file)
//if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true); //and allowing this
//}
ini_set('display_errors', 1); //commenting this
To view the error in detail on browser rename local.xml.sample to local.xml in Errors folder in magento root directory. Also please check var/report writable permission for error file.

How to turn on magento error messages?

I have installed Magento Community edition and tried creating my first simple hello world module. After a few hours I finally got it working.
My issues were I had used incorrect casing in some of the XML tags.
While trying to get it to work I tried to load the page a not found message was displayed, but no error.
I have switched errors on in the admin control panel System > Configuration > Developer > Log Settings and wrote a line which I know should have thrown an error but I just got a blank screen
How do I get errors to display in Magento?
Is it considered an error when I use incorrect casing in an xml file or is that an issue where I would not receive an error message? And if that is the case how would I quickly find the file that is causing the issue (obviously not a problem at the moment, but I can imagine as the module become functional it will be hard to find a single casing issue that is causing the problem)
For enable error reporting
In Index page change the following:
error_reporting(E_ALL | E_STRICT);
to
error_reporting(E_ALL);
Set $_SERVER['MAGE_IS_DEVELOPER_MODE'] = true
and uncomment this line
#ini_set('display_errors', 1);
In Errors folder rename local.xml.sample to local.xml.
hope this help.
to complete the pankaj post,
this work for me
index.php
ini_set('display_errors', 1);
error_reporting(E_ALL);
$_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;
Here are the steps that you should do in order to set Magento to display errors on the browser:
System > Cache Management > Disable All
System > Configuration > Advanced > Developer > Log Settings > Enabled => Yes
System > Configuration > Web > Search Engine Optimization > Use Wbe Server Rewrites => Yes
System > Index Management > Reindex All
Open .htaccess and set: SetEnv MAGE_IS_DEVELOPER_MODE "true" at the end of the file
Open .htaccess and set: php_value display_errors On somewhere within
Rename or copy /errors/local.xml.sample to /errors/local.xml
Modifying this code in magneto directory index.php:
Search for error_reporting(E_ALL | E_STRICT);
Replace with
error_reporting(E_ALL);
$_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;
OR
Uncomment it by removing the # sign from
#ini_set('display_errors', 1);
Refereed Link:
http://www.templatemonster.com/help/magento-how-to-display-error-messages.html

Resources