salaros
Forum Replies Created
-
OK, I got rid of the limit. It was actually a
php.inientry, but one calledmax_input_vars. I suppose that by raising its value you allow PHP to post longer input variables (arrays), in your casewrgf_image_url[],wrgf_image_url2[], ..
Thanks for pointing out possible php.ini config issue.I have just tested
post_max_sizeset to 40M, the result is still the same – max 158 images. I’ve inserted a phpinfo();die; into the function which persists the $_POST content (BTW it’s few KBs of text, just like I said before).I my case
$TotalImages = count($_POST['wrgf_image_url']);is always = 158Currently I have
post_max_size,upload_max_filesizeset to 30M + some other params such asmax_execution_timein order to upload big images on slow connections.
I will test it on a local server, but I don’t get whypost_max_sizeshould influence the serialized image info.
I mean once I’ve uploaded the images into the native WordPress Media, I just have to create a set of those images and post their names/paths + some additional pieces of data to the script which persists them as post meta inside the DB.
These serialized meta values are just few KBs, so IMHO there is no need for “big” values ofpost_max_size