Hmm... That helps a little bit.
But I still have problems understand why these paramters of the JS function call are empty.
Would you edit one of the podPress file in order to retrieve some more debug information?
Please, open the podpress_admin_class.php file in an text editor and insert between the lines 754 and 755 some new lines of code:
old:
while ($num < $this->settings['maxMediaFiles']) {
if(!isset($post->podPressMedia[$num])) {
$num++;
continue;
}
$thisMedia = $post->podPressMedia[$num];
if ( $thisMedia['showme'] == 'true' ) {
$display_text = 'block';
} else {
new:
while ($num < $this->settings['maxMediaFiles']) {
if(!isset($post->podPressMedia[$num])) {
$num++;
continue;
}
$thisMedia = $post->podPressMedia[$num];
echo "\n <!-- ### podPress debug: \n";
var_dump($num);
var_dump($this->settings['maxMediaFiles']);
var_dump($thisMedia['dimensionW']);
var_dump($thisMedia['dimensionH']);
echo "\n --> \n";
if ( $thisMedia['showme'] == 'true' ) {
$display_text = 'block';
} else {
You can find these code line probably two times in this file but the section around the lines 754-755 is the relevant one if you are use WP 3.0.1.
These lines will output the W and H dimension values into the source code of the edit page. I would like to know when the dimensionW and dimensionH value become empty. In the lines which you have posted above, they are obviously not empty and they should not be empty in the line 755 either.
After you apply these modifications, you should find in the source code of the edit page multiple section like this one:
<!-- ### podPress debug:
int(0)
int(10)
string(3) "320"
string(3) "240"
-->
Are there section where some of the values are NULL or empty?
e.g.:
<!-- ### podPress debug:
int(0)
int(10)
NULL
NULL
-->
One place which maybe not ok, is line 680 in the same file.
Please, try to modify this section like this:
old:
if ( FALSE !== empty($post->podPressMedia) ) {
$num = 0;
} else {
$num = count($post->podPressMedia);
}
new:
if ( FALSE !== empty($post->podPressMedia) ) {
$num = 0;
} else {
$num = count($post->podPressMedia);
$num = intval($num);
if ($num > $this->settings['maxMediaFiles'] ) {
$num = $this->settings['maxMediaFiles'];
}
}
If you do not know how to edit such PHP files, I could upload a modified file and post a link.