t4gal
Forum Replies Created
-
I did properly replace the xxx in your example, and I’ve confirmed that the .htaccess in the /wordpress/ directory and the /wordpress/wp-content/ directory both have LScache content.
Thanks for the response! I’ve added that, but still getting “miss” from litespeed.
I tried disabling litespeed through cpanel and enabling it again, and I also deleted and reinstalled the litespeed plugin. Still nothing.
Is there something else I should be checking? I’ve looked up different troubleshooting methods and I can’t see any reason this isn’t working.
The report number is ZDEFINJQ
Thanks for the response! I think this particular problem came from my following instructions in a Litespeed article which told me to add the following to my wp-config:
define("LITESPEED_CFG_HTACCESS", "/wordpress/.htaccess");
I added this because it was presented as a possible solution to the caching not working. I have wordpress installed in a subdirectory.
I tried changing the path used in that snippet and the error went away, so perhaps I just used the wrong path.
However, the ache still isn’t working. So I’m at a loss. Perhaps I should make a new thread for this, as it’s a bigger issue.
Is there something else I need to do in order to get the caching working for a wordpress install in a subdirectory?
Thanks in advance!
Forum: Plugins
In reply to: [Canada Post Shipping For WooCommerce] Won’t show any parcel shipping ratesI just looked through your other support threads and I see a recent one where someone else was having this problem and you solved the bug with an update. So I checked my site and sure enough, there was a new update available which fixed my problem. So it’s all good now!
Thanks!
Forum: Plugins
In reply to: [Canada Post Shipping For WooCommerce] Won’t show any parcel shipping ratesNo problem! I’ve sent you an email with the link.
Forum: Plugins
In reply to: [Canada Post Shipping For WooCommerce] Won’t show any parcel shipping ratesSure. How would you like me to send it? Via email? Did you get my original email?
Forum: Plugins
In reply to: [Advanced Ads –?Ad Manager & AdSense] Move ad label below adsThat’s perfect, thank you so much for the quick response!
Forum: Plugins
In reply to: [Media File Renamer: Rename for better SEO (AI-Powered)] Automatic Renaming?Hi there,
I sent an email about a week ago, and then sent another a few days after, but have received no response. Did you get my emails?
I think for now I’ll just buy the pro version and start manually renaming, but like I said, I have lots of files to do so it would be nice if I could get the automatic renaming to work, just to save me time.
Thanks for your time.
Forum: Plugins
In reply to: [Media File Renamer: Rename for better SEO (AI-Powered)] Automatic Renaming?Thanks for your response, I’ve sent you an email to the address provided.
Forum: Plugins
In reply to: [Media File Renamer: Rename for better SEO (AI-Powered)] Automatic Renaming?I can’t seem to get this working, so it looks like I may just need to go the manual route.
Before I buy the pro version to fix my problem, can you confirm the functionality of it? Will I be able to manually rename any image, including ones that have already been “automatically renamed”? I want to make sure I correctly understand how the pro plugin works before I spend the money on it.
Thanks!
Forum: Plugins
In reply to: [Media File Renamer: Rename for better SEO (AI-Powered)] Automatic Renaming?Thanks again for your answer.
I tried exactly what you said, but unfortunately nothing changed. I still don’t have the option to rename the accented characters. I thought maybe it was just the replaceAccent() function that wasn’t working, so I did a quick search and tried about 10 other bits of code that claimed to do the same thing, but none of them worked. I’m not sure if I’m missing something, doing something wrong, or if none of these bits of code that I’ve found actually work, as this is fairly foreign to me, so I’m not sure where to go from here.
This is exactly what I used, in my themes functions.php file:
function replaceAccent($string, $replacement = '_') { $alnumPattern = '/^[a-zA-Z0-9 ]+$/'; if (preg_match($alnumPattern, $string)) { return $string; } $ret = array_map( function ($chr) use ($alnumPattern, $replacement) { if (preg_match($alnumPattern, $chr)) { return $chr; } else { $chr = @iconv('UTF8', 'ASCII//TRANSLIT', $chr); if (strlen($chr) == 1) { return $chr; } elseif (strlen($chr) > 1) { $ret = ''; foreach (str_split($chr) as $char2) { if (preg_match($alnumPattern, $char2)) { $ret .= $char2; } } return $ret; } else { // replace whatever iconv fail to convert by something else return $replacement; } } }, str_split($string) ); return implode($ret); } add_filter( 'mfrh_new_filename', 'my_anti_accent_filter', 10, 3 ); function my_anti_accent_filter( $new, $old, $post ) { return replaceAccent( $new ); }
If I bought the pro version, would I be able to manually go through each image with accented characters and replace them by hand? Would they then be updated in the database and all references in posts and pages?
Thanks again for your help.
Forum: Plugins
In reply to: [Media File Renamer: Rename for better SEO (AI-Powered)] Automatic Renaming?I appreciate your answer, that clears things up!
I checked out the links you posted and have tried messing around with the bit of code from your FAQ and the following bit of code from the other link you posted:
function replaceAccent($string, $replacement = '_') { $alnumPattern = '/^[a-zA-Z0-9 ]+$/'; if (preg_match($alnumPattern, $string)) { return $string; } $ret = array_map( function ($chr) use ($alnumPattern, $replacement) { if (preg_match($alnumPattern, $chr)) { return $chr; } else { $chr = @iconv('ISO-8859-1', 'ASCII//TRANSLIT', $chr); if (strlen($chr) == 1) { return $chr; } elseif (strlen($chr) > 1) { $ret = ''; foreach (str_split($chr) as $char2) { if (preg_match($alnumPattern, $char2)) { $ret .= $char2; } } return $ret; } else { // replace whatever iconv fail to convert by something else return $replacement; } } }, str_split($string) ); return implode($ret); }
But I can’t seem to figure out how to make it work. I’m not very experienced in this kind of stuff, so I was just taking some stabs in the dark. I would appreciate any direction you might be able to give as to how to implement these two, or even if the bit of code I posted here is the right thing to use.
Thanks again for your help!
Forum: Fixing WordPress
In reply to: Images showing up under wrong month in Media LibrarySearching by file name would be ideal, unfortunately it doesn’t work. The only thing I’ve found that seems to actually work with the search function is searching for the image title, or the title of the post that the image is attached to. Neither of which are helpful in my particular situation, as the images I need to find usually do not have a title and are never attached to a post.
Even searching for the exact file name brings up no results. I’ve tested this by copying and searching for the file name of the newest image in the media library. (so that I can be certain the image actually is in the library, and certain that the file name is correct.)
Forum: Fixing WordPress
In reply to: Images showing up under wrong month in Media LibraryI’m not even sure how I would go about finding that out. With over 9,000 images in the library and no other way to search for images (that I know of? The search feature in the media library seems to be utterly useless in my experience.) it’s almost impossible to find duplicates. The only way I found out the images were displaying under different dates was by happening to stumble upon one that I knew shouldn’t have been there.