Support » Plugin: Google Drive WP Media » Error with the URL Rewrite

  • Resolved Kalyan Brata Das

    (@kalyanbratadas)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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/

    Plugin Author Moch Amir

    (@moch-a)

    @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.

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

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error with the URL Rewrite’ is closed to new replies.