one3rdnerd
Forum Replies Created
-
@oahetech are you exporting a date field from ACF? That was my issue. it was resolved by trying the new beta of WP All Export.
Contact the devs.
@anjoid did you get a solution to this?
Are you also using ACF and WooCommerce?
I ran into the same issue, I have ever tried 1 iteration per process and it always errors at 49% ish, seems to be on record 40 but it doesn’t show which record it got stuck on so I can investigate and see if there’s an issue with the data in that record.
Also this issue only happens for me when I’m exporting a date field at the moment. It worked fine doing an export with other ACF fields like the text field.
Maybe this info helps you, maybe you have an update or answer for me.
Thanks
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorAll good points, thanks for the input, very useful. I guess in this situation this approach isn’t ideal.
I have solved it without this plugin now and I have adopted an approach that just puts everything in the traditional WP media folder structure.
For those that run into an issue like this with 7000+ folders and files, my approach was
1) create a CSV file of the content I was importing (along with image URLs). I used ScrapeStorm ( a standalone program).
2) Migrate the folder structure for the images via FTP or file manager to the new server or site folder.
3) Search and replace the old url path to the images to the new one.
4) Use WP All Import to import and map the new content along with the image import/upload.
One other issue I had that this solved – In the old folder structure there were 100s of images with the same name nested in different folders (hence the structure).
During the import with WP All Import I set the import and upload of images to rename the image after the post name + a number for multiples or duplicates.
All working great now so marking this topic as resolved and hopefully the above is useful to someone else who runs into my unique situation.
Cheers fellas, @alanp57 and @psmits1567 you have both been great.
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorI may have found an alternative way to solve my problem without using this plugin.
I have the images all loaded up on my server and I have a CSV file of them all.
So I am using WP All Import to import them from the old folders into the WordPress media library and folder system. WP All Import allows me to run 5 at a time so I can slowly get through them all without hitting any errors.
Thought I would share, I will come back if that doesn’t work and I revert.
At this point I think it was a case of my siteground shared hosting account isn’t sufficient for this plugin IF you are dealing with 7000+ folders and files.
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorAh the host got back to me after investigating further and said the following
We have investigated the case in more details. The folder scan process should work in account with less folders, but currently there are 7000+ folders in the images subfolder: 0.000070 lstat("/home/customer/www/timothyb3.sg-host.com/public_html/wp-content/uploads/images/available/ballpythons/12cphpm1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 0.000055 stat("/home/customer/www/timothyb3.sg-host.com/public_html/wp-content/uploads/images/available/ballpythons/12cphpm1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 0.000146 sendto(4, "\254\0\0\0\3SELECT ID FROM wp_posts\nLEFT JOIN wp_postmeta AS pm ON pm.post_id = ID\nWHERE pm.meta_value = 'images/available/ballpythons/12cphpm1' \nand pm.meta_key = '_wp_attached_file'", 176, MSG_DONTWAIT, NULL, 0) = 176 0.000100 poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 1471228928) = ? ERESTART_RESTARTBLOCK (Interrupted by signal) 0.044216 --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=35930, si_uid=99} --- 0.000072 rt_sigaction(SIGTERM, NULL, {0x90ac00, ~[ILL TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1], SA_RESTORER|SA_SIGINFO, 0x7f1e60d9f600}, 8) = 0 0.000104 rt_sigaction(SIGTERM, {SIG_DFL, [], SA_RESTORER|SA_SIGINFO, 0x7f1e60d9f600}, NULL, 8) = 0 0.000042 rt_sigprocmask(SIG_UNBLOCK, [TERM], NULL, 8) = 0 0.000054 getpid() = 35931 0.000118 kill(35931, SIGTERM) = 0 0.000071 --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=35931, si_uid=1415} --- 0.015776 +++ killed by SIGTERM +++I wonder if there is a way for the plugin to run in batches of 100 at a time with breaks inbetween? Would that resolve my issues?
This is from a legacy site that used a nested and deep media directory structure but the site is low traffic so I can’t really justify to the client upgrade hosting to solve something that is a one-off as part of the migration.
Is that available in the pro version?
Appreciate your input gents.
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorI thought I had tested all plugins but it seems when I turned off WP GDPR Compliance the 500/504 stopped on the “check new folders” but it still doesn’t seem to work fully.
I have turned off all plugins and switched to twentynineteen theme.
When I go to scan folders it did start going through some but then froze.
When I go to the main plugin page I see the above screenshot.
So that surely rules out
– Other plugins
– Themes
– Javascript conflictsThe site contains no custom code since that’s loaded by a plugin which is also turned off.
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorI just checked the plugin on another site, also on Siteground but using a legacy account with CPanel access and the main page loads with a folder tree in the top left on the main plugin page.
But on my other site with the issue, this just shows a spinning loading image.
So it has to be something unique to that WordPress instance or the hosting environment just weird they share most of the same plugins and are both hosted by the same company on the same package. The only distinction between the two hosting accounts is that one is old and has CPanel and one is new and has Sitegrounds new proprietary replacement for CPanel which is a result of the fallout after CPanel’s pricing hike.
Just adding some additional info if it helps.
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorThanks for your input guys
I tried removing the htaccess file and retried the check new folders process and I got the same result unfortunately.
I added
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
@ini_set(‘display_errors’, 0);I then re-ran the check for new folders but no debug.log file has appeared inside wp-content.
This is the screen I see when I go to the main plugin page
The loading icon keeps turning and nothing shows there and sometimes this pop up appears with some html and css output.
I do have some other folders in my wp-content added by different plugins. Since I can’t access the page above I am not sure if I can check to see which folders have been detected.
I found 3 folders that aren’t already covered in your exclude list and have added those
bbpowerpack
genesis-extender
siteground-optimizer-assets(for your reference if you want to include them as stock as these might be pretty common)
None of the above has resolved my 500 and 504 issues though.
I can share admin details if that helps @alanp57
Appreciate your advice.
Forum: Plugins
In reply to: [Media Library Folders] 500 ErrorHi Alan,
Thanks for your reply.
Yes, I tried this and have worked with the host “Siteground” to increase everything and test again and still running into the same issue.
Siteground max execution time is 120 seconds, which is what I have it set at but the plugin just starts loading and doesn’t get anywhere until the 500 error or a 504 error.
what makes this plugin take longer to complete its action? Is it the number of new files and folders it’s looking for/finding?
Is there a way to process it in smaller batches?
Folder permissions are 755 @psmits1567
When I go to
Wordfence
>
Firewall
There is no option that says “Basic Firewall Options”
I ctrl+F and search and there isn’t any options with that name.
I’m sure before it was easy to find, now it’s hidden and after a week I still can’t find it.
Any other ideas?
Thanks, I submitted a support message through that link.
The support expired, not sure if we want to renew if the mobile menu option is no longer available.
I managed to resolve this. While it fixed it turning off Yoast, the issue was elsewhere with a piece of PHP so I resolved it without needing to mess with the plugins.
So you are aware, the code that was causing the issue while yoast was active was
function custom_genesis_page_builder_attributes_site_inner( $attributes ) { if ( class_exists( 'FLBuilderModel' ) && temp_is_builder_enabled() || FLBuilderModel::is_builder_enabled() ) { $attributes['role'] = 'main'; $attributes['itemprop'] = 'mainContentOfPage'; return $attributes; } } I changed the above to the below and it fixed the issue. The above code worked fine for the last 2 years on maybe 50 different websites but now seems to throw that issue. function custom_genesis_page_builder_attributes_site_inner( $attributes ) { if ( class_exists( 'FLBuilderModel' ) && temp_is_builder_enabled() || FLBuilderModel::is_builder_enabled() ) { $attributes['role'] = 'main'; $attributes['itemprop'] = 'mainContentOfPage'; } return $attributes; }Forum: Plugins
In reply to: [Redirection] Getting 404 for many image URLsOkay I got this resolved.
Since the site is with WPEngine I spoke with them and they added a change to add a prox_pass to skip that part of the Nginx configuration.
This now allows file extensions like png and jpg to work with the redirection plugin again.
If you are with WPEngine and have the same issue request they make the above change and it should fix the issue.
Forum: Plugins
In reply to: [Redirection] Getting 404 for many image URLsI think I have the same issue but no idea how to resolve.
@swagatam1975 what did you do to work around this?
I have the same issue where images don’t redirect but I don’t think I was ever using any anti-hotlinking.