WordPress.org

Forums

Google Drive WP Media
[resolved] Error with the URL Rewrite (5 posts)

  1. Kalyan Brata Das
    Member
    Posted 1 year ago #

    hi,

    You just added a great feature. However, it seems there is an issue in implementing this. I am getting the following error when I clicked on the non-visible image link

    Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /*****/********/public_html/dainikjanakantha.net/wp-content/uploads/gdwpm_images/index.php on line 4

    https://wordpress.org/plugins/google-drive-wp-media/

  2. sJnhguVlgrPv
    Member
    Posted 1 year ago #

    I have with the URL Rewrite too.
    I create folder and files. But when I try to upload new media through Add media I have error upload.
    See picture at bottom of page:
    http://bmw-auto.kiev.ua/bmw-i-mercedes-benz-umenshat-chislo-ispolzuemyh-platform/

  3. Moch Amir
    Member
    Plugin Author

    Posted 1 year ago #

    @Kalyan Brata Das, you have manually add index.php file, right?
    edit index.php
    change this line

    $gdurl = "https://docs.google.com/uc?id=$_GET['imgid']&export=view";

    to

    $gdurl = "https://docs.google.com/uc?id=" . $_GET['imgid'] . "&export=view";

    @sJnhguVlgrPv, if you create index.php manually then you can try to edit it too

    i'll fix this, thanks.

  4. Kalyan Brata Das
    Member
    Posted 1 year ago #

    just what the doctor ordered... thank you very much Moch.. It's perfectly working now.. really thankful for your lovely support.. kudos..

  5. sJnhguVlgrPv
    Member
    Posted 1 year ago #

    Thanks Moch! Its working. You are great man :)
    It would be still very good, if you added the ability to:
    WP to sliced ‚Äč‚Äčimages of different sizes and save them to google drive. Because now all the pictures on Google Drive it scales using css.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Drive WP Media
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.