Oleg Dudkin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: "Fatal Error: Out of Memory" when uploading imagesIt seems you are talking about different things.
Resolution is ratio of pixels and length – it really matters only for printing.
Size in pixels can be the same for images with different resolution.
But as we are talking about web lets think about image resolution as about size in pixels (how most people do).One more momemt,
when you add action wpcf7_before_send_mail, specify priority lower than 10, to process form before DB extension – it uses the same hook$cf7->skip_mail = true; should be set only for step1 form.
Replace is slow. It is loaded through ajax, then message is shown, and then replace is executed.
There are field for skipping some form in database options. You need to fill form name, and step1 form data won’t be saved to DB.
Don’t forget to clean $_SESSION after form2 is sent.
And one more sing:
Check $cf7->id when saving form data. storeDataStep1($cf7) is called for both Step1 and Step2session_start();
Should be at the very top of functions.php
Instead:
on_sent_ok: "location = '/step-2/';"
Try :
on_sent_ok: "location.replace('https://www.xxx.yyy/step-2/');"
function storeDataStep1($cf7) {
Use
function storeDataStep1( &$cf7 ) {
To prevent email sending:
$cf7->skip_mail = true;
To change message:
Unfold “Messages” metabox in WP admin when editing form.Forum: Fixing WordPress
In reply to: "Fatal Error: Out of Memory" when uploading imagesIf you provider limited memory to 30M – No setting will increase it.
The are possible two possible problems:
1. Image is too large. After image is uploaded WP makes image copies based on registered image sizes. It consumes some memory. Try to upload some tiny jpg image to check. Or upload some other file like small *.zip. Which is not processed like image.
2. Some plugins can leave to many data in database, so it fill al memory while loading WP. It is very rare case, but still possible.Maybe you should look for some memory optimizer plugin. There are many of them.
Forum: Fixing WordPress
In reply to: Show custom fields of grandchildren in list?Use orderby instead sort_column.
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’ //Default is DESCHi
There is an action – wpcf7_before_send_mail.
It gives you control over whole form object.
You can store posted_data property to session and then prevent from sending email for step1.
on_sent_ok: must be set to redirect to step2.
When you catch step2 form add data from first form to it.
Hope it helps.
Don’t know the way to do it without PHP coding.Forum: Fixing WordPress
In reply to: How to display video i've uploaded using PHPThanks a lot.
I decided to use 3rd party video hostings.Forum: Fixing WordPress
In reply to: How to display video i've uploaded using PHPCapitan?
Forum: Fixing WordPress
In reply to: @font-face not working on pages but, is on blog posts…Similar promlem.
Did you find a solution?Forum: Developing with WordPress
In reply to: WordPress User Scaling IssuesYou can use “pre_user_query” filter and “debug_backtrace” to handle query.
Thanks, this helped! The same query appears three times in plugin code, so fix should be applied 3 times.
WHERE (
(
post_status = ‘published’
)
OR (
post_status = ‘publish’
)
) AND post_type = ‘post’Forum: Fixing WordPress
In reply to: [Add New Menu] Error when add new menuRepearing of DB helped.
Forum: Fixing WordPress
In reply to: [Add New Menu] Error when add new menuSame problem. But with custom theme. For some reason the same two items always disappear.