Folder permissions for Wordpress on Azure - wordpress

I have recently created a new Wordpress site, on azurewebsites.net. After the initial instal, I updated the PHP version to 5.4 and then resarted the site.
I was having trouble creating new folders, and in paticular, a plugin wasn't working as I would have expected.
The plugin was the WPTouch plugin. I installed the plug, but each time I tried to upload a new image to the
/wp-content/uploads/wptouch/custom-icons
(via the plugin, this was the final destination) I was getting the error message:
There seems to have been an error.
Please try your upload again.
Within Web Matrix 2, I do not have the ability to create a new folder (I thought that I would create the folders myself, and see if that resolved the problem).
So my question is - is there an issue with the folder permissions, and if so, how can I get round this to make the Wordpress plugin work.
Thanks for your time.

I have had similar issues (upgrading WP plugins on Azure Website) and have found the only way to upgrade these is to restart the services, manually delete the remnants in the plugins folder, and re-install.
It's far from ideal but I'm persisting with it for now..
Some more in depth explanations here: http://social.msdn.microsoft.com/Forums/da-DK/windowsazurewebsitespreview/thread/8c4d17e9-520c-4d89-bc7d-efe923dd1a55

Related

Getting critical error when installing Wordpress

My hoster forced me to upgrade my Wordpress site because it was fairly old. I decided to upgrade to PHP 8.1. It caused issues with the website, so I figured I'd rebuild the whole website since it's a simple website. I deleted all the existing files and uploaded the 5.8.2 WordPress install files. Then I changed all the permissions to 0755. I created a fresh database for the install.
At first, the setup would appear. I would go through the install, but when I clicked install after entering all the database info, I got "There has been a critical error on this website." I recreated the .htaccess file to the default and tried again. Now I get this error just hitting the domain, no more setup screens. The site does redirect to the /wp-admin/setup-config.php file. I don't have a wp-config.php file in the directory, just the sample one. I tried creating a wp-config.php with the correct info, but same error. I also tried adding the debug options, increasing PHP memory, etc. Same error. I don't get any error logs.
Does anyone now how to get an error log or can help with ideas on how to create a fresh WordPress site? I did change the PHP versions to older ones, but that didn't work either.
You need to take a backup of your file ,then fallow the fallowing instruction.
Rename your plugin one by one and refresh the website.
this issue due to the unsupported plugin ,that is installed in your wordpress website.
1- Make a backup copy of the files and from the old database
2- After that, download these files on your PC
3- Install WordPress again
4- Replace the wp-content file with the old one
5- Clean the new database and import the old database through phpMyAdmin
I solved that problem installing an older version of Xampp, with previous version of php, MySQL and Apache. I give up version 8.1.1
XAMPP 7.4.27 / PHP 7.4.27
https://www.apachefriends.org/download.html
There was something wrong on the hosting side. The source of the issue was indeed that WordPress could not write to the config file. Even the hoster was unable to delete the files. We ended up deleting the entire root directory and starting from scratch. Now it's all good.
The lesson learned is that one of the sources of the "There has been a critical error on this website." error is that WordPress is unable to write/edit files. It's also why it could not write an error log. WordPress could have been more descriptive here.

Is it possible to host my WordPress plugin in GitHub?

I know that the WordPress plugin directory is hosting site and not a listing site.
In order for your plugin to appear in the directory is to host your plugin with them using SVN.
I have used their SVN for a while and just wonder if I can instead use a GitHub repository and whenever I release a new version on GitHub it will automatically release an update on the WordPress sites which the plugin is installed.
I really think that if I used GitHub in hosting my plugin, it will not appear in the WordPress plugin directory? Am I right or wrong about it?
I want to use GitHub to release and at the same time, I want my plugin in the WordPress plugin directory.
I have tried so far following this tutorial: https://www.smashingmagazine.com/2015/08/deploy-wordpress-plugins-with-github-using-transients/
But this is for self-hosted plugins.
Unfortunately there's not a straight way to get what you're looking for. At the root of it, you need to have your Plugin hosted and maintained on their SVN.
That said, there are some Git to SVN Mirroring options available that, while a bit convoluted to set up (and sometimes providing mixed results) should be able to handle what you need if you can bear to walk through the initial set-up.
Check out the following gist: https://gist.github.com/kasparsd/3749872.
If you set it up properly, you'll be able to effectively deal with your plugin like it's hosted on GitHub where it will mirror itself into WordPress's SVN, so it will show up in the Plugin Repository.
Unfortunately I haven't seen it even broached as an issue since what, 2015? So the odds of native GitHub repo integegration at this point don't seem all that high.

Replacing an old WP site with a new updated site

So i'm looking to replace an old site with a newly built site. Both sites are built in WP. The urls are set up like this: "oldsite.org" and "oldsite.org/new"
I need to replace the old site with the new site so that /new is not required to get to the right place. What's the most efficient way of going about this? My client says has has a couple of back-end developers attempt this already and both failed due to faulty plug-ins. Import/Export attempts have previously broken the site.
You can go for a simple solution. Please find that step wise :
Take a backup of current site.
Install WP CLONE ACADEMY plugin into your new site.
Clone the new site
Install the same plugin into old site.
Import the clone file into old site.
Everything will imported from new site to old, even the database, plugins and etc.
Hope this will help you.

After WordPress updated, getting error

After updating my client's WordPress site to 4.7 version, could not access the website and wp-admin. I got this error:
Fatal error: Class 'WP_Roles' not found in /webcorp1/www/corpusers/h/y/hyeinfotech.com/wp-settings.php on line 293
Before you update WordPress you should follow the WordPress guideline.
It looks some files are missing related to user_role class. Try updating plugins. If issue not solved try following solutions.
Solution 1: If you have backup then you can restore the website and try update WordPress once again along with all plugins.
Solution 2:
Create a demo/test location on the server/local computer.
Take backup of wp_content folder.
Take backup of Database.
Install a fresh wordpress on the test location.
Import the database backup on step 3 to test location wordpress database.
Replace the content folder on the test location.
Check, if everything works fine then you can move the code and database to current running server.
I hope this solution will work for you. If not you can hire any reliable WordPress Development Agency or Individual to make things done for you.

Uninstalling a magento extension

I've been trying to uninstall a magento plugin I've recently installed to reinstall it using Magento Connect. The log said that the plugin uninstalled successfully and if I go to the admin panel, the plugin's no longer there but when I went back to Magento Connect, the plugin is still listed there so I can't reinstall. Why is this happening?
Based on the answers, what I've tried so far are:
Clear cache through Admin Panel
Removed wordpress entry in core_resource
I've made sure wordpress xml in etc/modules is removed
I've made sure Fishpig folder in app/code/community is removed
Cleared cache in var/cache
Cleared cache in downloader/cache
Checked if there's xml for wordpress in var/package (there was none)
Reindexed magento
And none of this worked. The wordpress extension was still listed as installed in Magento Connect. I've been trying to uninstall repeatedly but it just won't go away even though the log said that the uninstall process completed. I've also tried reinstalling and upgrading. No success.
to remove the extension:
remove all the modules files, includeing the file which enables the module:
app/etc/modules/COMPANY_MODULE.xml
also make sure the entry is gone from the database by removing the correct entry in table:
core_resource
then refresh the magento cache
It should then disappear from connect.
Which module have you installed? Can you give me name so I can give you solution if possible for me. If module add new own tables in db then dont delete any module file otherwise may be magento crash. Its better way to uninstall from magento connect manages.
Clear the .cache folder in the downloader directory, in addition there is also another area where an xml can be present in var/package/
The package files are from magento connect so delete from here and have another check!
delete all files in var/cache/ and double check you are actually working in the right folder! if you have another caching system then clear it.
To delete the extension from Magento Connect (I believe you have already uninstalled it from Magento) you will need to delete the file var/package/Fishpig_Wordpress_Integration_{{version}}.xml
Thank you very much for all your help and time. I really appreciate it. I've managed to solve the problem. It's apparently a problem with permissions. I didn't realize soon enough that the permission for all folders had to be 777. I had most folders set to 777 except for 2 files on my etc folder (local and locals.xml) because of security issues. But after getting a go signal changing said permissions, I managed to uninstall the plugin and reinstall it. Now the Wordpress is fully integrated in the website with no problems and I've also returned the permissions for local and locals.xml back to it's original. Thanks again a lot for all your time.

Resources