marcnyc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: is there a plugin to fix old broken image linksThanks for the response…
this article (https://www.wpbeginner.com/plugins/how-to-fix-broken-links-in-wordpress-with-broken-link-checker/#brokenlinks-linkchecker) seems to indicate that it’s a very CPU intensive plugin and some hosts don’t allow it…is there something not CPU intensive that can just check the page when it’s rendered/displayed?
Forum: Everything else WordPress
In reply to: How to Become a Translation Editorthank you @markscottrobson – will try this
my phpinfo suggests I have it set to “600” as local value and “30” as master value
Of course. But they don’t offer support for code
I believe 5 or 6 su sizes are created but not sure (where can I check this?)
I’ve developed too much logic, conditions and code to switch to a plugin and restart so I’d like to get this to work.
The obvious solution is to not create the subsizes but I’d love to find a way to have the subsizes to increase compatibility and responsiveness
Thanks for the reply @a2hostingrj
I have tried with smaller images and it works if they are really small but even with just one image of 1mb it times outs.
I tried settings the max exec Time to 3000 and the upload size to 25 in my cPanel settings but to no availThank you for your reply @bcworkz
Basically I have contributors that are making a mess with their posts and every post looks different so I wrote a script that has a multi-step form for the contributors to enter all the data and the script to create consistent-looking, consistently-laid out, consistently-designed articles (in this case interviews).Once I have the data I use
wp_insert_post()
to put it into WP.
Every article has 4 images.The script is beautiful and does exactly what I need but the images that go with the article need to go from the contributors computer into WP. Initially I was hoping to use
media_hand_upload()
and do it with one WP function. It worked with small images (<100kB) but would time out with 4 images of less than 1Mb each, so then I added steps to upload every image one after the other, but even with a single 1Mb image it would still time out… so that brought me to this point…I figured since
media_handle_upload()
keeps timing out, I’ll break down the steps with error checking between them that that function performs into multiple steps (hence the function I posted).
My steps are:
1.move_uploaded_file
to put the files from user into wp uploads folder
2.wp_insert_attachment
to create dB attachments
3.wp_generate_attachment_metadata
to create the subsizes…It always times out at step 3… and that’s where I’m at… I don’t get an error message, just a timeout
- This reply was modified 4 years, 9 months ago by marcnyc.
Forum: Fixing WordPress
In reply to: Saving is STUCK on Updating, even with HealthCheck pluginHello @bayrush
I never found a solution per say but the problem seems to have gone away.
I had noticed that it was not happening on safari so I was making my updates on safari rather than chrome. Then after a while I tried with chrome again and it worked. Sorry I don’t have a definitive answerthanks @joyously – I sort of made it work… I don’t fully understand it but your code was helpful
Forum: Everything else WordPress
In reply to: How to Become a Translation EditorI’m totally with you and have done everything you said.
Italian is my first language and I translated from english to Italian in the way you have described, which is why I wonder why it is taking so long for the translation to be approved.Thank you @joyously
I have tried your second code example (adding$overrides['unique_filename_callback'] = 'my_unique';
beforemedia_handle_upload()
) but I get the wp error “Invalid form submission.”can I do the same with
media_handle_upload()
?can I do this?
array $overrides = apply_filters( 'wp_unique_filename', $new_filename ); media_handle_upload( $file, $post_id, $post_data, $overrides )
or how do I do it? I am not sure how to use filters in functions
Thanks for the reply.
Those both appear to append numbers in case there is an existing file with the same name. I’m looking to change the name so I can prepend a word of my choosing to the file name. Is that possible?Thank you @joyously
Forum: Plugins
In reply to: [Postie] prevent Postie from converting subject to HTML special charactersI will do so.
Meantime I wanted to say that the email was sent by PHPMailer v6 – does that help?