reziden7
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Contact Form-7] form is not displaying on pageHi,
hope I can help , do followings :
– edit in html the page/post content and remove the <p> tags around the shortcode
– it may be something wrong with the theme, activate twentyten or twentyeleven theme to see if the problem persists
– make sure you copy/paste the code exactly
– it may be something wrong with some of the plugins, try deactivating them one by one and see if the problem still persistsI think I solved this one. For unknown reasons (and don’t want to check this out) my hosting has some trouble with this scripts, maybe execution time is to low, or memory…anyways, since I had like ~3000 pictures (some of them re-sized in wordpress default 3 sizes ) and they were gonna have 3 new different sizes, it took enormous time to do all of them. So I changed the script like this (maybe someone has the same problem)
added this code below the two requirements
$postsperpage=2; if($_GET['start']) { $offset=(int)$_GET['start']; $next=(int)$_GET['start'] + $postsperpage; } else { $offset=1; $next=$postsperpage; }
added offset to the end of attachement array
'offset'=>$offset
and at the end redirect to same page but from where it ended beforeecho '<script type="text/javascript"> window.location = "rebuild_me.php?start='.$next.'" </script>';
as far I tested, even with $postsperpage=2 (two images at one load) the page was not redirecting sometimes, so need to change the start value in the url manually.
also added an if(!empty) before foreach loop so it stops at the end.thanks for helping Rahe
Hi again, sorry I was a little busy. I’m now testing rebuild-thumbs.php .
This is faster, I can see , I see files are created with and new sizes are included, but getting this error very very often
An error occured with the media 16319 (updating post meta)
(should iI be worried ?).
I don’t think the code is right, wp_update_attachment_metadata($attachment->ID, wp_generate_attachment_metadata( $attachment->ID, $fullsizepath ) ) == false
shouldn’t it be ==true ? Also tried updated version of the plugin, same error as previous version.
Hope this script fix problems, get back asapHi again, the result was empty. I will test it by hand and parse variables by hand or script later this day. If I cannot see any errors, I’ll try that plugin.
Thanks a million for helpdon’t know how to do that. activated the console panel from firebug, saw the request it made but the response was empty. don’t know how to check for php errors on that , but the source code of the admin panel is php warning/error free.
thanks for explaining the crop thingYeah, sorry , forgot to mention that. On media list, single image regeneration works