Michael C
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: This image has an empty alt attribute, 5.0.3I figured it out!
First, to get permalinks to work on Windows with the 5.03 version of WordPress, you have to install the URL Rewrite module from Microsoft.
Then, you have to change the web.config file in the root wordpress directory with this within side the
<rules></rules>
<rule name="Imported Rule 1" stopProcessing="true"> <match url="^index\.php$" ignoreCase="false"/> <action type="None"/> </rule> <rule name="Redirect Image to HTTP" stopProcessing="true"> <match url=".*\.(gif|jpg|jpeg|png|css|js)$" ignoreCase="true"/> <action type="Rewrite" url="{R:0}"/> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="." ignoreCase="false"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/> </conditions> <action type="Rewrite" url="/index.php"/> </rule>
To see the source for my discovery, go to:
https://stackoverflow.com/questions/32349542/wordpress-500-url-rewrite-module-error
- This reply was modified 5 years, 10 months ago by Michael C.
Forum: Fixing WordPress
In reply to: This image has an empty alt attribute, 5.0.3I am experiencing exactly the same thing. Only when I am using postname as permalink. Oddly, if I upload picture taking from the device (photo on iphone) or screenshot on pc — it works.
I am using a Windows server. I wasn’t able to get pretty permalinks to work without install the microsoft urlrewrite module.
Any known causes or fixes?
Forum: Fixing WordPress
In reply to: Encrypt WordPress User passwords using SQL rather than PHP?I am using 2.8.4 and I was able to use MD5 to create a password. I was surprised since I too thought salting was needed.
I used this code:
UPDATE wp_users SET user_pass = MD5(‘THE_PASSWORD’) WHERE wp_users.user_login =’THE_USERNAME’ LIMIT 1;
I was also able to insert a user into the table using similar code. But is also important to create an entry into the wp_usermeta table with the correct information. I simply use a query to copy from a working user record since I am too lazy to figure out all of the meaning behind the records:
insert into wp_usermeta
(
user_id,
meta_key,
meta_value
)
select 3 as x, meta_key, meta_value
from wp_usermeta
where user_id=2