01.19
I’ve been banging my head against the wall trying to get this WordPress app working on the iPad. I did all of the setup instructions as directed, but it would always pop up a “500 Internal Server Error” when listing the posts page. I saw numerous fixes listed on the different sites all talking about having to put some Apache handlers for php5 in your .htaccess file. That didn’t fix my issue though.
Looking on my hosting provider’s php error log showed that the “wp-scripts/class-IXR.php” file was triggering a memory limit error. My host has the php memory limit parameter locked, so I couldn’t change it. The only fix was to modify the class-IXR.php to limit this memory hog section.
Here’s the section (around line 97) to change:
case 'array':
$return = '<array><data>'."n";
$idave=0; //change
foreach ($this->data as $item) {
$return .= ' <value>'.$item->getXml()."</value>n";
if (++$idave == 8) break; //change
}
$return .= '</data></array>';
return $return;
break;
This change will only list the last 8 posts in the app, but that’s fine for my needs. Adjust as necessary to fit your host’s memory limit.



Hi, where is the file “wp-scripts/class-IXR.php? I do not find!
Sorry for my english!
Thanks.
Looks like it moved. It’s now under /wp-includes