• Resolved rishi2411

    (@rishi2411)


    Hi Team

    I have installed Stateless Plugin.Although it has synced all my files on my google bucket and is using it to view images and pdf.
    But in some of the cases,even if the pdf is synced to the bucket,its picking up from my server as earlier.

    Kindly help.

    FYI:-
    We are using WP 4.7.5
    Google Cloud Storage.

    • This topic was modified 7 years, 4 months ago by rishi2411.
Viewing 11 replies - 16 through 26 (of 26 total)
  • Hello @rishi2411. Please, note, the fatal error you experienced ‘Can’t use function return value in write context‘, belongs to PHP 5.5 and less.

    Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.

    More details ishere

    In general, it means, that the version of PHP on your server is too old. And, you may face with a bunch of other Fatal Errors, even if the current Fatal Error will be fixed.

    WP-Stateless plugin ( and most of other ones ) support PHP 5.6 and higher.

    Anyway, the Fatal Error is fixed and it will be available in new ‘hotfix’ release 2.0.2 shortly. Until, new WP-Stateless 2.0.2 is not launched, you can download the plugin with fix here.

    Regards

    Thread Starter rishi2411

    (@rishi2411)

    Hi @ideric/@maximpeshkov

    Thank you for your kind help.Will try applying the fix.

    Thread Starter rishi2411

    (@rishi2411)

    Hi Team

    My issue with some of the pdf’s is still not resolved.I have been trying this for weeks but the issue still persists.I don’t know what to do else.

    Stateless sync is showing that the pdf has been synchronised.Pdf is synced on my google cloud storage.But still the url is not pointing to the google storage url.
    Kindly check the below url and the pdf link it is pointing to.

    Please share any mail ID on which I can attach snapshots as well.

    link

    Kindly help.This is really frustrating

    Hello.

    Really sorry for a late response about PDF. At the moment Stateless support only image files (jpg|\.png|\.gif|\.jpeg)

    You are welcome to add your idea about PDF file as an issue on our GitHub repository.

    We are big contributors to the WordPress community and are committed to consistently improve our products. We prioritize our roadmap through client suggestions and I will make sure this idea gets to our product team.

    Regards.

    Plugin Author Eric Sopp

    (@ideric)

    I can see that the PDF was, in fact, sync’d with Google Cloud Storage.

    Here is the direct link to the file on GCS:
    https://storage.googleapis.com/blog-alpha/2017/06/Cabinet_Ministers_of_India.pdf

    It looks like you simply need to update the link used on the page:
    https://alpha.testbook.com/blog/updated-cabinet-ministers-of-india-gk-notes-in-pdf/

    To be clear, WP-Stateless supports any file you upload into the WordPress Media Library.

    • This reply was modified 7 years, 3 months ago by Eric Sopp.
    Thread Starter rishi2411

    (@rishi2411)

    Hi @ideric

    Would I need to do that for every post containing pdf?Can’t it be done same as the plugin works for images?

    Plugin Author Eric Sopp

    (@ideric)

    @rishi2411, at the moment the automatic url update only works for images. We’ll need to investigate adding support for other file types. In the meantime, you will need to update the URLs for your PDFs manually within the post content and meta fields.

    Plugin Author Eric Sopp

    (@ideric)

    I created an issue on github to track this enhancement. We’ll try to include it within the v2.1 release. Follow along at https://github.com/wpCloud/wp-stateless/issues/146

    Plugin Author Eric Sopp

    (@ideric)

    @rishi2411 if you don’t want to wait for the next release or manually update those urls, you can apply the fix yourself. The code changes are available for your review at https://github.com/wpCloud/wp-stateless/commit/591f307ed53427911ee07552dc5fb0921d652729

    or simply download the updated zip file from https://github.com/wpCloud/wp-stateless/archive/v2.0-hotfix.zip

    • This reply was modified 7 years, 3 months ago by Eric Sopp.
    Thread Starter rishi2411

    (@rishi2411)

    Hi @ideric

    Thanks for your immediate cooperation and support.Will try applying the fixes.

    Plugin Author Eric Sopp

    (@ideric)

    @rishi2411 that’s great. Let me know if you have any further issues.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Few PDF showing older URL’ is closed to new replies.