500 Internal Server Error when adding module - php

Im have a opencart 2.3 installed with a custom theme along with a custom module that shows a product slider. The problem is that i setuped the site on my localhost and everything seem to be working perfect.
But when i uploaded it to my VPS the home page gives an internal server error when i add the module the to the home page. When i remove it, the page loads fine. This happens only on my VPS. When i uploaded it to a differnt host and my localhost everything works fine.
The main problem is that i cannot find the actual error which is causing the problem because the apache error logs doesnt log any php related errors.
so far,
i removed the htaccess
enable error reporting through htaccess
removed extra php.ini file which might be conflicting
added the error reporting code on the index.php file
checked the opencart error logs
none of these seem to work. It shows the internal server error instead of the actual error. For almost 2 weeks i have been struggling and tried almost all the methods in SO but none seems to be working in my case
Can someone let me know how can i get it show the actual error or log it instead of the internal server error?

Related

Ckeditor, uploading an image

We keep getting a 500 internal server error when using Ckeditor to upload an image from local machine. Click here to view screenshot
This is the error we have been getting: /ckeditor/filemanager/connec…hp/upload.php?Type=Image&CKEditor=content&CKEditorFuncNum=1&langCode=en-gb 500 (Internal Server Error)
We have removed the .htaccess file and we're still getting this error.
So, we copied the whole folder to another hosting package. And when we tried to run the phpinfo file, it worked absolutely fine there.
But it is not working on our VPS server and is giving 404 Page not found: https://www.diarydirectory.com/redesign/assets/ckeditor/filemanager/connectors/php/phpinfo.php
GoDaddy aren't being helpful at all.
Does anyone have any suggestions at all? Our team have exhausted all options

My php pages in my hosting account display server error 500 when accessed

I recently uploaded a website for a friend in byethost just for viewing purposes. When I tried to check if it is working, all HTML pages are working correctly but when I access php pages a server error 500 occurs. What can be the problem?
I have checked for a .htaccess files as many forums here suggests but to no avail since my account does not have that page. It only occurs when I alter php configuration in the cpanel which suggests to put magic quotes 'on' or 'off' but after, the php page displays no server error but it displays a blank.
I had edited the connection php page to "# mysql...." Instead of "mysqli" can this be the reason? And can anyone help me with this problem?
You need some debugging.
In your php file:
ini_set('display_errors', 1);
In .htaccess file:
php_flag display_errors 1
Also, you might want to check this out: Getting Internal Server Error while trying to access my site

White blank pages in Laravel After Login

Sorry, this is question don't have a code snippet but a situation. I've a Laravel application which was running fine on my localhost and server. Today I made some updates to the controllers and some views. The changes was working fine in the localhost. So I uploaded the files to the server. But when I tried to login in the server, I could see the home page, login pages and all. But getting a white blank page after login.
When I manually try to navigate to other pages in the logged in section, it redirects to the dashboard and blank page comes. Everything is working fine in the localhost. I didn't make any updates to the server configuration. Everything was as before.
OS: CentOS 6.6 (Final)
PHP version: 5.6
Laravel 4.2
Server version: Apache/2.2.15 (Unix)
I checked several answers from other similar questions such as this one and this one. But they all had some updating situation. But in my case not so.
What would be the problem? If you need any additional information, just let me know.
I can give some more information:
When I access a course page (which I need to login to see), it shows a 302 Found status code in the Network tab and then redirects to the Login page where it again shows a 302 Found status code and then to the dashboard with a 200 ok code. Session is being created. Thats' why it's redirecting back to the dashboard page. But the page is still empty.
A blank white screen usually means either
Your'e rendering a template with no content
A fatal PHP occurred before Laravel could completely bootstrap itself
The "right" thing to do here is to check your web server error logs, or your PHP error logs. I'm going to guess you don't know where those are or if they're setup properly. If that's the case you'll want to temporarily change PHP's display_error ini setting. In Laravel 4.2 I'd do this by setting the ini in the following file
#File: boostrap/start.php
<?php
ini_set('display_errors','1');
//... rest of file
This should result in the error being displayed on the screen, and from there you can debug further.

Drupal Migration - Error 404's

I've set up a Drupal 7 site locally and have ftp'd the site over to my ISP's server which is a linux box running PHP and MySQL.
I've never successfully logged into the site before and I have locked myself out. When I go http://www.example.com/?q=user and click on request New Password then I get this error:
Not Found
The requested URL /user/password was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
One thing I've been confused about and that is the .htaccess file. I never had one locally on my Mac and I did not need it (I know it is hidden) - so I downloaded one and deployed it to the web site but then I got 500 errors, it made it worse. I've since deleted that file and at least I get some content - but not very much - just the front page. I overrode the themes name in settings.php as I have user access errors there. I changed it back to one of the default themes and that allowed me to get some content and not the 'white screen of death'
Advice welcome!

Drupal 7 on hosted IIS 7

I have a annoying problem with my hosted domain on iis. I installed a drupal 7 instance in a subdirectory of my webspace.
When i access mydomain.com/drupal I get an 500 Internal Server Error: "The page cannot be displayed because an internal server error has occurred." nothing more, nothing less.
When i access mydomain.com/drupal/index.php the site works fine except the /drupal?q= syntax which is not rewritten properly (index.php?q= works fine).
I hoped if i transfer my installation to my wwwroot the problem would vanish but instead less works. Now I can't even access mydomain.com/drupal/index.php (resulting in 500 aswell).
Since the iis is hosted by my internet provider i can't configure the Settings nor can I access server logs.
I tried playing with web.config including httpErros errorMode=Detailed" passthrough and other stuff but all I get is that damn 500 Internal Server Error with NO Information.
If the web.config is invalid xml syntax I get a proper Error page reporting that the syntax is incorrect, so it seems the web.config is parsed but somehow ignored.
Do you have any ideas that could help my case?
Thanks
Edit: I forgot to mention i tried setting access rights to execute as well as read and write for web.config and index.php but didn't change a bit.
Seems the web.config shipping with Drupal 7 caused the problems.
I found this article and used the proposed web.config as stated there and now the homepage works fine.
http://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/install-drupal-on-iis

Categories