magento homepage gives a blank screen - php

I was working on my magento page www.samsungtelefoonhoesjes.com and suddenly my homepage that normally works perfectly only shows everything until the home slider. after that everything is white....
The page worked 30 mins ago.
What is the best way to troubleshoot this?
Can I use firebug or something for this where should I start?
cleared cache
reindexed
removed cache
disabled the slider (this was my last change i did)

Firebug shows 500 Internal Server Error.
Try following solutions:
Check apache error_log, it should be in /var/log/apache2/error.log in most cases.
Check for permissions to your files and folders. Files should be 644 and folders should be 755. Reset permissions using magento cleanup script.
Check your .htaccess file.
Check out this article. http://techjam.gr/2012/magento/solve-magento-500-internal-server-errors/

Try restarting apache on the server, this worked for me.

Related

Xampp not showwing my projects in browser - htdocs folder

I used windows 10 as the operating system and I installed xampp it's been a long time and it chews well, until yesterday after an error in mysql.
So I looked for solutions on the internet and I finally solved the error by copying the files from C:\xampp\mysql\backup to C:\xampp\mysql\data.
then the service mysql is well marketed even as Apache.
PhpMyadmin chews well without a problem. phpmyadmin page shows, but my code, will not show.
The problem is: my old projects exist in htdocs only display "This page does not work" and "localhost" in the title head, and nothing loads from my project files.
Note: I used codeigniter as a framework.
Note: I can navigate to a new project but for existing projects beyond that it no longer works.
Thank you P.al
Use Directly like-
http://localhost/projects/form.html
Here your files should be inside C:\XAMPP\htdocs\Projects\yourfile.html
The error in your picture appear an php script error
Edit php.ini for display error and notice in browser
display_errors = on
save the php.ini restart apache and reload page.

Wordpress on Plesk (Ubuntu) - suddenly white screen with no html returned

I can't explain it, I didn't change anything but it seems suddenly today one of my websites on my Plesk environment (Plesk on Ubuntu) is suddenly white. No error, no php errors, nothing (even with define( 'WP_DEBUG', true ); or any other method that would help me find something.
Also the error logs for the domain don't seem to return anything helpful.
As it's Wordpress I tried to rename the plugin folder, theme folder, checked .htaccess, other configs.
But … 
I only get a completely empty page when I inspect it.
<html>
<head></head>
<body></body>
</html>
I'm running PHP 7.2.19 with "FPM application served by nginx" but also switching to some other PHP version, updating parameters or switching to apache-serving doesn't do anything.
I also checked other domains on the same Plesk installation, that work all fine.
Any ideas here?
Before you give these solutions a shot I recommend that you restart your server first as the problem might get solved by itself because we know that plesk does a lot of updating in the background.
Solution 1
Access your error logs /var/www/vhosts/yoursite.com/logs/access_log and check if there are 500 errors in there. Meaning that you need to allocate more Memory in the PHP settings of plesk (Plesk > Your Website > PHP Settings) e.g 256 or 512 MB.
Don't forget to add define('WP_MEMORY_LIMIT', '256M'); in your wp-config.php
Solution 2
Rename /plugins/ folder to /plugins.old/ and create a new empty plugins folder then go to /wp-content/ and remove advanced-cache.php. Also in wp-config.php check if you have define('WP_CACHE', true); then change it to false.
Solution 3
Your theme could be broken so switch to any default theme to find out.
Solution 4
Go to Plesk > Your Website > PHP Settings and enable errors. Then add "define( 'WP_DEBUG', true );" into your wp-config.php. Try to Visit your administration panel and view random webpages to see the errors as they could give you a clue of what is going on. Then you can google whatever error.
Solution 4
Go to Plesk > Your Website > Settings > Switch To FastCGI/PHPFPM, Apache/Nginx, etc. Try all of those in combination with different PHP versions.
Solution 5
Turn off Mod Security from Tools & Settings > Web Application Firewall (ModSecurity)

How to solve "Nothing found" errors on wordpress after upgrading vps then downgrading to shared?

I have recently upgraded my website to vps hosting and then downgraded to shared hosting again. After that strange things starts to happen: I get "Nothing found" error on wordpress time to time (Not happening all the time, but sometimes and for some visitors, some pages and frontpage, when I refresh the site comes but another time it shows nothing found..). This also happens to some site visitors.
I believe something wrong with htaccess file or its ignoring by the server. Asked it to hosting support. But nothing helped me.
I have also checked permalinks and re-saved them on wordpress end.
Deleted htaccess file. Still nothing changed. Changed content on htaccess file still nothing has changed. Reuploaded htaccess and still nothing changed.
SS
Tried to find httpd.conf (For searching this line: AllowOverride None) file but there is no file on my shared server.
I want to do this: Command : sudo a2enmod rewrite but since its a shared server they dont allow me (godaddy). Please help me.

ERROR: The file 'wp-config.php' already exists

I clicked on the 'Update WordPress' link in the admin dashboard of my WordPress site, and I am getting this error:
"The file 'wp-config.php' already exists. If you need to reset any of the
configuration items in this file, please delete it first. You may try installing now."
When I try to click the "installing now" link, it seems that WordPress is installing fresh. I want to keep all of the content of my WordPress installation.
I have tried to change the name of the wp-config.php file but that didn't do anything.
Is just a browser cache.
On first URL load, you are redirected from domain.ext to domain.ext/wp-admin/setup-config.php
If you are on Chrome, just open the developers console, go to "Network" tab. Reload the page and right click anywhere in the console, and hit "Clear browser cache".
Now refresh again and you will see your website
I ran into this same issue while I was transferring a site. The issue ended up being with the .htaccess file. I fixed it by resetting my permalinks. There may be other causes to this issue but this worked for me:
Click on General => Permalinks
Click Save Changes (to reset permalinks)
Try to display the website first on the incognito tab. If it works correctly, clear the browser cache.
Once the page refresh has been completed, the website will appear.
You can use the following shortcuts to clear the browser cache.
Windows: Ctrl + F5
Mac OS: CMD + Shift + R
This usually happens when you use an old version of Wordpress files or old database, and you use partly new files of Wordpress.
All you need to do is to delete all WP files and install a fresh Wordpress (new files unzipped from a new version of Wordpress) and use an empty database.
If you're planning to migrate or move from another website, you should use the export/import function built in wordpress.
he file wp-config.php already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.
Answer:- Please Clear Your browser's cache.
Did I miss the party?
Today I have a problem like what you experienced 5 years ago. The solution is: Remove all caching plugins (Cloudflare, Jetpack, Litespeed).
Maybe you could try to delete 'wp-config.php' file, or take a backup of this file in different folder and then try again.
If you are using bluehost and did not do the one click install :
I solved this problem by deleting the default error pages 404.php 500.php etc...
I do not know why exactly this was causing this issue... Sorry for the sloppy answer but tried clearing cache and recreating the .htaccess file it didn't work.
I removed the added spaces that the Wordpress's own web 'easy installer' created in the wp-config.php file to help me out.
Guess the Wordpress's own wp-config.php ?checker? isn't compatible with Wordpress's own installer. Wow.
Once the added spaces were removed, site comes up fine. I simply modeled the spacing that is in the wp-config-sample.php file.
Because you just installed wp.
Just hit ctrl+F5 done!!!
More likely it is cache issue and this error comes when we try to install one Wordpress inside of another sub folder of the cpanel in the same Wordpress installation and it will be mostly resolved when you try to check it in the private window or another browser
For me it was file permission set to 666 changing it to 664 worked.
If someone is still for a solution.
This happened to me on an existing site while trying to update.
the problem was following line in wp-config.php near the end.
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-admin/setup-config.php');
Removing this fixed the problem.
Hope this helps.
RESOLVED: I had the same problem. post hack situation on other account, shared hosting and server NUKED. Luckily I had the backup files from one of the WP plugins but the main page didnt load, I could only go to 404 and from there to other pages but not main page, the error was wp-config eists...install...blah blah blah.....so I tried everything, multiple re-installs, changed the wp_prefix as per previous install on the fresh install and nothing helped, even ordered paid support from the backup plugin developer as I was sure that it fooked because I had Opencart also installed there but the backup was intended for WP only, my web developer also did something, perhaps removed the OC bits from DB, but thank god i managed to resolve it on my own(and justhost),. so I contacted the justhost for the SECOND TIME and they told me that the account is on VARNISH i.e. some sort of automated cache limit, so I told them to take it off and they wanted to know what have I done to reduce the LOAD to the server, so I told this and that and two seconds later everything loaded perfectly. took me about 20 hours to get main page loading, plus probably it will take 10 hours for fine tuning of the site. anyway if you contact jour host make sure you ask them if they are not blocking cahce as the first time I got in contact they couldnt help me.
I also meet with same error and Mr Pierre R is right its just a cache. Just clear your cache or check in private window. All fine.
if someone have still this error..
goto->admin->setup.php (delete this file error will be solve)
hope this will help.

Replacing PHP file - file doesn't work anymore

I have a weird problem I cannot seem to solve (as a php noob).
I am working on simple php site (no sql involved). Everything was working perfectly till the moment I decided to copy over the files and edit them on another computer. All worked fine on the other computer as well. Then I took the files and copied them to the first computer again. Here came the problem: if I try to open ANY file copied from the second computer, it doesn't show anything, just a blank page. Even if the file was not edited at all on the second computer.
For example my index.php:
1. Copied from comp 1 to comp 2, no edits done
2. Copied from comp 2 to comp 1
3. Opened in the browser -> blank page
What's going on here and how to solve it? Is it some cache that apache is keeping? How to clear it? Both computers with OSX, however the second one was running MAMP, while the first had php/apache/sql set up.
Your permissions need to be set up correctly. Do the following:
Change the owner of the group to your user
chmod 0755 all the directories
chmod 0644 all the files
Then you are good to go!
You need to make sure that your permissions are set up correctly.
Apache Permissions
The blank page is displaying because Apache is encountering a PHP error somewhere, but is not set to display PHP errors.
Check out what is going on in your Apache error log and work from there. You could also look in the Developer Tools of a browser like Chrome, or use Firebug, to see what response your browser is getting from the server (most likely a HTTP 500 error).
I wouldn't recommend blindly changing ownership on files and directories until you know what is going on.

Categories