[an error occurred while processing this directive] - wordpress

Hey guys I'm in the middle of migrating a wordpress site from one host to another (BlueHost to LunarPages). I backed up everything on the old server, did a fresh WP install on the new server, imported the old files over, did the wp-config/database changes and got the site to show up.
http://www.albertineco.com
But if you navigate to any page it gives you [an error occurred while processing this directive]. I've tried deactivating my plugins and switching themes to see if that caused it with no luck. LunarPages didn't have a real idea of the cause of the problem either.
This was in the Cpanel error log:
[Fri Mar 22 10:57:32 2013] [error] [client 69.178.136.2] invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home/alber27/public_html/404.shtml, referer: http://albertineco.com/
Any thoughts guys?

I had the same problem. This is how I solved:
I asked the hosting company to provide me the FTP credentials
I logged in to FTP and right clicked .htaccess file
I changed the cmod for .htaccess file to 777
I went back to my dashboard and re-did the permalink and saved.
Now, it works.

Related

Strange issue with wordpress - critical error but nothing in debug.log

I have just put some changes to a wordpress theme live, it all works on the staging server but for some reason it's giving a critical error on the live site.
As normal i go and look at the debug.log file and there is no fatal error is showing in that file, and no error_log is showing it either.
Any ideas on why it's not recording the fatal error (usually that is what causes the wordpress critical error)
Probably, the "fatal error" you're talking about occurred before WordPress was initialized. For example, if the code, that triggers the error is located in index.php of your active theme.
In this case, try to find error messages not in wp-content/debug.log, but in webserver logs folder /var/log/httpd/error_log/ or /var/log/apache2/error.log

How to fix 'Uncaught PHP Exception Twig_Error_Loader: Unable to find template' on Symfony 3.4?

I deployed a symfony 3.4 project from my local machine (Windows 10) to a cloud server (Digital Ocean) based on Ubuntu.
I spent 2 days trying to resolve this (i think) routing problem:
"request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader..."
Locally, on localhost with XAMPP, it works perfect.
The project runs ok on the login (is like a backend user app), with the register ok But when it tries to pass the login, it needs to load the initial dashboard with some includes (like nav_side.html.twig) and the server response is error 500.
How can i fix it?
Thanks a lot for your response...i'm a little bit desperate. :)
I made composer update, i deleted the cache folder, but the error is still there.
request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader: "Unable to
find template "Backe ndBundle:includes:nav_side.html.twig"
(looked into: /var/www/onecup/app/Resources/views,
/var/www/onecup/vendor/s
ymfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form) in
"BackendBundle:Dashboard:index.html.twig" at line 7." at
/var/www/onecup/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line
234 {"exception":"[object] (Twig_Err or_Loader(code: 0):
Unable to find template \"BackendBundle:includes:nav_side.html.twig\"
(looked into: /var/www/ onecup/app/Resources/views,
/var/www/onecup/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form)
in \"BackendBundle:Dashboard:index.html.twig\" at line 7. at
/var/www/onecup/vendor/twig/twig/lib/Twig/Loader/Fil
esystem.php:234)"} []
#Flying was right: examine your code and try to find possible case inconsistences in directory / filenames. e.g. "file" and "File". Windows filesystem is case-insensitive, but Ubuntu filesystem is case-sensitive.
So, i changed the Includes to includes and that's all.
Thanks a lot!! :)

Warning: require(/home/domain/public_html/domainname.com/wp-admin/wp-blog-header.php): failed to open stream: No such file or directory

Warning: require(/home/domain/public_html/domainname.com/wp-admin/wp-blog-header.php): failed to open stream: No such file or directory in /home/domain/public_html/domainname.com/wp-admin/index.php on line 17
Fatal error: require(): Failed opening required '/home/domaine/public_html/domainname.com/wp-admin/wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/domainname.com/wp-admin/index.php on line 17
So I have seen this error before once and it actually occurred on this domain prior to today, but I was able to temporarily resolve this by updating Wordpress 4.9.5 from 4.9.4. This has never happened to me on my host with any other site and I have set up dozens over the years with different Wordpress versions.
However, it just started giving me this error again today only on wp-admin/index.php. If I access any other page, like wp-admin/edit.php?post_type=page, the page loads fine.
I have not made any changes to my site aside from adding content and products between last night and today when the error first came up. Disabling all plugins does not fix the issue. There's no error log yet because the site has no errors, it just won't load /wp-admin.
What is going on? I'm happy to provide the real domain name to those who might have an idea.
I was facing the same issue. wp-blog-header.php does not belong to wp-admin directory. This is a virus. I had to download the whole Website and then cleaned with antivirus.

Suddely files started missing from Wordpress and showing errors

My domain: bharahobe.info
I have installed WordPress in main domain and sydney theme. Everything was okay. Suddenly when I visit my site it shows error messages. Like this:
Warning: require(/home/bharahob/public_html/wp-includes/pomo/mo.php):
failed to open stream: No such file or directory in
/home/bharahob/public_html/wp-settings.php on line 102
Fatal error: require(): Failed opening required
'/home/bharahob/public_html/wp-includes/pomo/mo.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/bharahob/public_html/wp-settings.php on line 102
What should I do now?
If you have access through FTP or SSH, you should log into the server and verify that those files exist. The files may have been deleted by a bot or botched upgrade. The permissions may have changed as well.
If the files are actually missing, you can probably get away with downloading the version of WP you're currently running and replace the missing files.

Xampp + Wordpress, Error 500 .htaccess

I'm trying to host a local WordPress site on my machine using Xampp.
I got everything working, I can get on the site etc. However I can't change the Permalinks without editing the .htaccess, and here lies my problem.
I've removed the "#" in front of the "Load rewrite" module in Xampp, and also changed the "AllowOverride All".
If I add in my own .htaccess file into the WordPress root (Xampp/htdocs/mysite/.htaccess) then the error comes up, otherwise it doesn't. I have hidden files visible yet I can't see a .htaccess file there, even adding a blank one breaks it.
Error from webpage:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
Error form Apache Error Log:
[Fri May 16 13:45:48.885862 2014] [core:alert] [pid 18435] [client ::1:54974] /Applications/XAMPP/xamppfiles/htdocs/PMD-new/.htaccess: Invalid command '{\\rtf1\\ansi\\ansicpg1252\\cocoartf1038\\cocoasubrtf360', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/PMD-new/wp-admin/options-permalink.php?settings-updated=true
.htaccess File:
http://pastebin.com/vb3zScdx
When I remove the .htaccess file it works fine, but I can't change the permalinks.
I'm new when it comes to this so any help is appreciated.

Resources