-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PPT is not working when uploaded the Google Cloud #170
Comments
The exact error which i can see in my Logs is:
|
@pranshuagrawal Are you writing in a directory where you have writing rights ? |
So in Google App Engine, we are required to write to buckets. We do not have write permission to the file system. So creating a file should be something like this: However, the save() function in PowerPoint2007.php is looking for a different directory path. When I log this path out it shows me: my/file/system/htdocs/gs:/bucket_name/app_name. How do I get this to work on App Engine, any idea? |
@pranshuagrawal I never use AppEngine, so I improvise. Could you show me the code for saving the file ? (with content of variables) Thanks |
I am using two variants and none of them is working. $xmlWriter = IOFactory::createWriter($phpPresentation, "PowerPoint2007");
$xmlWriter->save("php://output");
return; $xmlWriter = IOFactory::createWriter($phpPresentation, "PowerPoint2007");
$xmlWriter->save("gs://bucket_name/app_name");
return; and none of them is working, the error is same in both the cases and it is |
Try this : ob_start();
$pptxWriter = IOFactory::createWriter($phpPresentation, "PowerPoint2007");
$pptxWriter->save("php://output");
$output = ob_get_contents();
ob_end_clean();
file_put_contents('gs://bucket_name/app_name', $output); |
Some news ? |
So the issue was that App Engine does not have Zip Extension installed and we can not help it sadly. So I moved my PPT Export module to compute engine of GC which is nothing but a Linux VM, and now it is working great there. Thanks for being so active here. |
@pranshuagrawal I'm going to implement adapters for Zip : ZipArchive if installed or PclZip if not... |
Linked to #176 |
So I made a PPT using PPTPowerpoint, the code is working absolutely fine on my localhost but when i try deploying it to Google Cloud, it doesn't responds. What I mean by it doesn't respond is
My GC is correctly configured to serve PHP files (though not sure do I need to firther configure it to support PPTX or not).
Does any one else has faced this issue, Any work around for this?
The text was updated successfully, but these errors were encountered: