I am getting an error on my WordPress website after changing the server. it's working on cPanel but not working on the AWS server.
I haven't change anything in this file.
This is just one screenshot. SO not allowing me to upload the code. Getting some error while uploding.
I don't know how I got this gray code on the formatting.php page. I found this code in more than 3 places.
I download the latest version of WordPress again and updated the formatting.php and It's starting working again.
Cause
If you use FileZilla like I do - that's where the problem comes from.
If you download your site contents with FileZilla, then the file contents get corrupted.
When you upload again, the 'unexpected characters' break Wordpress.
Behaviour
That explains why in my case, my DEV site was working fine.
But when I download/upload migrated the contents to a fresh QA instance then QA failed with the:
There has been a critical error on this website.
Solution
I used Nautilus to connect to my host as a Remote Server.
When I copied my formatting.php down through Nautilus, the file opened all clean.
The FileZilla FTP copy was dinged in 3 places.
WinSCP is also apparently fine with this.
Disclaimer: Not my own work
All thanks due to this comment:
https://wordpress.org/support/topic/parse-error-on-line-5925-in-formatting-php/
Related
I have installed TinyMCE and Laravel-file manager. Here are the referring links which I followed-
https://www.tinymce.com
https://github.com/UniSharp/laravel-filemanager
Now everything works well on my localhost. Attaching an image of successful output to localhost
success in localhost
Now After uploaded my application into the live server while I was trying to upload the image, I have faced file manager showing me an error and it doesn't work.
This is the error image I got-
Error image while uploading application on live server
Anyone, please help me find the solution and tell me what should I do now.
I found 2 errors in my files and 1 in my cpanel and i made those errors while uploading my project from localhost to live server(tzipor.com/tz). I had to made correction two path while uploading to live server(tzipor.com/tz) but i did not do that. Those occurred the problem. Here i am explaining those-
I am using tinymce and i am integrating filemanager with that. I had to make correction to my tinymce editor file. Giving you a link of image referring to my localhost file. https://ibb.co/bZdwew
the tinyeditor file, while in localhost, path_absolute : "/", is the correct code. But this should be change based on my live server url. As my live server url the code should be path_absolute : "/tz/", https://ibb.co/c3TF6b
So we need to careful here while upload project localhost to live server
in config/lfm.php this code was correct while my project was in my localhost- 'base_directory' => 'public', .https://ibb.co/jKYezw But after upload project into live server this path should need to change based on my server link. As my live server link, this should be 'base_directory' => '../tz', https://ibb.co/mVowew
3.In cpnael->select php version: make sure fileinfo have checked. https://ibb.co/gS9GUw
So we need to be careful in this three sections while upload project localhost to live server.
Thank You
You should make sure that your routes were cached with new entries:
php artisan route:cache
Also make sure you really installed the package running:
composer install
on live server.
So I am following TheNewBostons video guide:
https://www.youtube.com/watch?v=vQCIZOv1su0&list=PL6gx4Cwl9DGDdCg0Jli_WTZd5JIliDY62&index=3
(On how to manually install Apache, php and MySQL)
Getting to the 3rd video where I am about to make the "Tuna baby!" php file to test it out I get the error "404 Not Found". I don't have Notepad++ so I am just using Notepad and naming it .php at the end. If I only write localhost is says "It works!", so Apache is working.
Not Found
The requested URL /tuna.php was not found on this server.
The weird thing is that I had no problems while doing this on my main computer but now I am doing it on my laptop and seem to have the problem every time I try doing it. Had to uninstall everything with "Revo Uninstaller" to remove all the traces and so on so this should be a clean install.
Any idea why it is not working?
Installed Notepad++, saved the file properly as a php file and it worked.
I've been playing about with this plugin over the last few days, customising it and setting it up to work exactly as my site requires. I got it all working fine on my localhost server, with no errors/bugs. However, when I try to upload it to my Plesk server, no files are shown onload (even though there are images in the target folder), and when I try to upload im presented with the " Empty file upload result" error. Oddly.. the file upload seems to work even though its displaying the error, and the relevant images appear in the folder. So it seems to only he having a problem with reading, but not with writing?
I've checked the permissions of the files and thumbnails folder, and set them both to 777, so that cant be the issue.
I really cant see why this is working on my localhost server but not my Plesk server. Any help would be much appreciated.
Finally solved this issue. The problem was that my Plesk server was running a very old version of PHP. Updating it to 5.3 seems to have cleared up my issues.
Using Aptana Studio 3. Does anyone know if Aptana Studio formats or changes files when it does an "auto deploy"?
Didn't make any changes to files while I ported over a Wordpress site to Aptana Studio. When I set up an SFTP connection and enabled auto deploy, it did what looked like a sync and suddenly the server crashed with a 500 error.
PHP Fatal error: Call to undefined function get_header()
Given the error above, it looks like Aptana deleted something. Is there a local history like IntelliJ?
I'm hoping someone can explain if Aptana formats files or deletes them when it does a sync.
Thanks.
Aptana won't delete anything during a sync...but it does do a "safe" upload. It uploads the new file to a temporary file on the server, deletes the original file, and then renames the new one to the old one. The main reason this fails is if there is a mismatch in server permissions such that it can't perform the rename or delete. Fixing those permissions fixes the issue.
As to Local History...try this: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-55.htm
I found a very strange result after the Aptana "auto deploy". Essentially, all of the files in the folder under editing were copied and overwritten to the root.
Given the circumstances it looks like an Aptana bug. I double-checked connection settings and folders were set correctly. Perhaps a sign to abandon Aptana.
I have just moved a Wordpress install from a remote host to run on my local development machine. On the remote server it's fully functional.
However, on my development box I can only load the homepage. Other URLs just load a standard phpinfo() page with no errors.
Does anyone know what might be causing this?
It sounds like you are using MAMP or WAMP on your dev box, which will load a default vhost showing phpinfo for any page that does not exist.
Inside wordpress, the settings, in the DB, it sounds like you have Url's "hardcoded" like "http://www.mysite.com" which are not working locally because your "dev" Url is something like "http://localhost"
Whenever using a development server, especially with wordpress, you should setup you dev server as close to your production server. This means you should edit your host file to make it so "http://www.mysite.com" actually goes to your development box or localhost. That way you are viewing everything as it will be when it goes to production.
I had this problem as well following the hosting company re-installing an SSL certificate.
I did some searching and really only found this thread which give me the idea there was a 404 error hiding there somewhere so I checked the php_errors.log file (which I found in the root folder of my site in FTP) - opened that in notepad and found many errors such as:
PHP Fatal error: Class 'WordPressHTTPS_Module_phpinfo' not found in /var/www/vhosts/mywebsite.com.au/httpdocs/wp-content/plugins/wordpress-https/lib/Mvied/Plugin.php on line 385
So - indeed a missing file in the wordpress-https plugin.
To correct, I renamed the folder which contained that plugin (eg wp-content/plugins/wordpress-https to wp-content/plugins/wordpress-https-disabled) - effectively disabling the plugin.
This then allowed me to login to the wordpress admin, install the latest version of that plugin - which worked fine and then deleted the old folder (wordpress-https-disabled)
Everyting was good as gold after that
Hope that helps someone :)
open httpd.conf in text editor
Change;
AllowOveride none
To;
AllowOveride All
I had the same challenge when I cloned my remote site locally.
I fixed it by checking the .htaccess file and correcting this line to point to the right project folder:
RewriteRule . /wordpress/index.php [L]