how can I fix resizing iamge problem in wordpress - wordpress

error :The server does not have ImageMagick or GD installed and/or enabled! Any of these libraries are required for WordPress to be able to resize images. Please contact your server administrator to enable this before continuing.
please tell me if you know this problem

Open xampp control panel.
Start apache and mysql.
Click on config option of apache.
Click on php.ini and open it.
Press Ctrl+F and search "extension=" or "extension=fileinfo".
On the next line to "extension=fileinfo", add "extension=gd".
Save the file.
Stop apache and restart it.

in some cases there is "extension=gd" already given. but commented with a ";". You need the romove the ";" to uncomment it. Then your problem should be solved.

Related

Brackets unable to access the extension registry

Everytime I open the extenstion registry, I get this error:
"Unable to access the extension registry. Try again later"
My internet connection is very stable and everything is fine.
Also, I don't see this error with my Macbook, which uses the same wifi connection.
I am now using windows and this error occur.
What should I do? I don't see any clear solution even after searching on google.
There is a solution!
Copied from a reddit post:
Hey there,
Brackets is not dead! The only problem on current installations is a broken extension manager functionality. A direct, transparent transfer of the registry to the new domain wasn't possible because of Adobe's implementation of SSL. A quick fix for this is simple, we just have to edit config.json:
Locate your Brackets installation in your filesystem
Go to /www/config.json and open it up to edit
Find this: "extension_registry": "https://s3.amazonaws.com/extend.brackets/registry.json",
Change to: "extension_registry": "http://registry.brackets.s3.amazonaws.com/registry.json",
Find this: "extension_url": "https://s3.amazonaws.com/extend.brackets/{0}/{0}-{1}.zip",
Change to: "extension_url": "http://registry.brackets.s3.amazonaws.com/{0}-{1}.zip",
Save and (re)start Brackets, the extension manager should work again
I welcome you to see more comments there in the original post.
for my Mac, it was simply this command in the terminal to open the config:
open /Applications/Brackets.app/Contents/www/config.json -a Brackets
Brackets is not being supported anymore, that's why U can't connect the extenstion registry.
Just replace config.json on www folder with this config.json. Do not rename the file just replace at there. Then restart your Brackets Text Editor.
This works for windows

Server not showing the right file on webpage

I am testing/learning how to send info from a Gravity form to a test file on my website.
I am using a testfile.txt that I added in var/www/ which is the location of the Wordpress directory.
The command I am running updates that file and I am able to see its contents when i go to the domain: mywebsite.com/testfile.txt.
The first time I run the Gravity form, I can see the changes on the webpage. However, after updating its contents to something else, the webpage does not update despite reloading it.
To troubleshoot this, I SSH'd into the server to see if the file was being updated and indeed it was...
So, basically, the file is being updated on the server but not on my GoDaddy domain... Has anybody encountered a problem like this? And if so does anyone have a solution?
I am no Expert in this field, Beginner to be honest. When I was learning Python flask a framework for building website, I had similar issue. Maybe the problem is that, when you visit your website it loads from the cache. To solve that press 'ctrl + F5', it forces a cache refresh, and will guarantee that IF the content is changed, you will get the new content. Again, I am beginner myself.
As #Sadman said, whenever I don't see my content getting updated I do a hard refresh or delete the cookies and cache manually. Either one of these solved my problem. To make a hard refresh press ctrl+shift+r or ctrl+f5 or shift+f5 on windows. On MAC this is cmd+R. I hope this helps!

Page of "http://localhost/wordpress/" gives Error "404"?

Page of "http://localhost/wordpress/" gives Error "404" for install of Wordpress.
I did following steps from https://premium.wpmudev.org/blog/setting-up-xampp/?npl=b&utm_expid=3606929-89.qobzZlXrS1uV61bna13Vlw.1&utm_referrer=https%3A%2F%2Fwww.google.com%2F#ref site: "1.These lines of code define the login details for your database:
2.Replace“database_name_here” with the name of your database, which in my case is “WP” Replace “username_here” with “root” and leave “password_here” blank 3.Save the file and close it" But when i search "localhost/wp" in Browser gives Error 404.
Can you help me?
Thanks.
Page open with click on the "Admin" button according to the following foto:
if you are using xampp then url could be http://localhost/wp. Try this open xampp control panel then start the apache server and mysql, after doing this you can check if http://localhost gives any error, and there is wp or wordpress folder xampp htdocs. Then go to http://localhost/wp or http://localhost/wordpress.

Download failed. There are no HTTP transports available which can complete the requested request

When I try to install theme on wamp server it shows a line as below
Download failed. There are no HTTP transports available which can complete the requested request.
How to fix it?
I think you probably need to activate the php_curl extension to solve this issue.
Do this to activate the php_curl extension :-
Left click wampmanager ( thats the W icon in the system tray )
wampmanager -> PHP -> PHP Extensions
If the php_curl extension is not ticked then click it and it will activate the extension and restart Apache for you.
It may also be necessary to activate php_openssl in the same way, depending on the theme's requirements.
Make sure that:
allow_url_fopen = On
Under your PHP Extensions allow php_curl
Restart your Server.
WordPress will try to use several transports to make the request. First it will try curl, then streams, then fsock.
If your server is set up with curl and your version of curl supports SSL (required for using the API), then it will use that.
Next it will try to use streams (fopen). If fopen is set up and working on your server, it is set to applow opening from a URL (allow_url_fopen), and openssl is set up and functional, then it will send the request with streams.
Lastly, if your server has fsockopen set up and usable, and openssl is also set up and functional, then it will use fsockopen to make the request.
If none of those work, then it will be unable to send any. This is all built into the WordPress HTTP API.
If your server can't make the requests, it will be unable to make many other requests as well.
You need to get your host to set up a transport method that WordPress can use.
Sometimes if you face similar kind of error after trying to update any plugin or wordpress itself from localhost using your Xampp, then don’t worry. You could avoid this error and update it from your localhost enabling PHP curl extension.
To enable it:
1. Open your “php.ini” file.
2. Find the line which says “;extension=php_curl.dll”.
3. Now simply remove “; or semi-colon” from the line.
4. That’s it. Restart your Xampp and now it should work updating without error.
You probably need to activate the php_curl extension to solve this issue as well
as uncommented the extension=php_openssl.dll in php.ini file.
Do this to uncomment the following extension:-
wampicon -> php -> php.ini
then search the following extension in php.ini file.
Hope this will help you to resolve your issues.
Setting both of these extensions in the php.ini file worked for me:
C:\wamp\bin\php\php5.3.13
C:\wamp\bin\apache\apache2.2.22\bin
extension=php_openssl.dll
extension=php_curl.dll
You will need to enable php_curl.dll from your php.ini file, this should correct the error. Just remove the ; on the line stated to correct the error.
Hope this help.
Cheers!

Cannot access configuration page in drupal 7 site

I am currently building a website using drupal 7.x. Unfortunately I cannot seem to enter the admin/config page. Every time I click on the configuration tab on the administration menu, I only get a blank page. Then I created another sample site. It also has the same problem and I am using WAMP server. I cleared cache and finds no difference. I have searched for similar issues, but could find none. Can someone please tell me what I am doing wrong?
A number of things can cause the White Screen of Death, but the most common things to check:
As suggested above, memory limit may need to be increased.
Have you enabled any modules other than those in Drupal core? Try disabling contributed modules and enable individually until you experience the error, to help you identify which module is causing trouble. If you can't access the modules admin page, you can disable them in the database - the system table has a 'status' field. 1 means enable, 0 is disabled.
Could it be a permissions issue? Check admin access permissions or try logging in as the superuser (user ID 1).
Lots more and discussion here and here.
Finally I got the answer. Increase the max_execution_time in php.ini file. It solves the issue.
A few things to try...
Check your php error log for clues.
Create a simple file that calls phpinfo() and see what your memory_limit is. It may need to be increased.
Try tweaking your php.ini to get it to display an error message instead of a blank page.
I tracked this very issue to l10_update module, once I enable it, admin/config shows the WSOD. Once I disabled it, everything's fine. So:
- unchecking the localization_update module in the "modules" list
- de-installing it from the modules list
- deleting directory sites/all/modules/l10n_update
- and re-installing the module (from the same tar.gz file)
Source: https://www.drupal.org/node/1141160

Resources