Hi, Studio Mercury!
Firstly, you done a great work with the plugin. Congrats! =)
However, I have a issue when I push articles to the cloud.
After do that, I can see the articles in Folio Producer... but all of them have the alert: Missing or unable to load layout.
What was very strange for me, because I receive a successful message when I push the articles in Wordpress.
Debugging the error, I found this in my server log:
PHP Warning: ZipArchive::addFile() expects parameter 1 to be string, array given in /var/www/html/wordpress/wp-content/plugins/folio-author-wordpress/classes/dpsfa-bundlr.php on line 126
In dpsfa-bundlr.php, we have:
foreach($files as $filename => $filepath){
if($filepath){
$zip->addFile( $filepath, $filename ); /* LINE 126 */
}
}
I saw that $files variable is the first parameter of create_zip function... and the create_zip() is called in bundle(). All these functions are in dpsfa-bundlr.php.
In blundle(), we have the $articleFiles. This variable is an array merge and is passed as create_zip() parameter 1.
The addFile() expects a string on parameter 1, but an array is given and the error occurs. Because of this the zip is not created and the articles are uploaded without the layout.
How I fix this?
Sorry for my english.. I'm from Brazil. =)
And Thanks for the help! =)
My installation:
Wordpress 3.9.1
PHP 5.3.3
Apache timeout = 60
MySQL 5.1.73