Title: Parse error when activating
Last modified: August 21, 2016

---

# Parse error when activating

 *  Resolved [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-when-activating-1/)
 * Hello,
 * I get this error when activating the plugin:
 * > Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE
   > or ‘$’ in /home/xxx/public_html/xxx/xxx/wp-content/plugins/pwebonedrive/liveconnect.
   > php on line 318
 * [https://wordpress.org/plugins/pwebonedrive/](https://wordpress.org/plugins/pwebonedrive/)

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/parse-error-when-activating-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-when-activating-1/page/2/?output_format=md)

 *  [xiaoker](https://wordpress.org/support/users/xiaoker/)
 * (@xiaoker)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753170)
 * This is a great plugin. But unfortunately, when I enabled this error also appeared.
   I have a suggestion, can get onedrive bulk link address?
 * Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE
   or ‘$’ in /alidata/www/xiaoker.com/wp-content/plugins/pwebonedrive/liveconnect.
   php on line 318
 *  Plugin Author [Gator Forms](https://wordpress.org/support/users/perfect-web/)
 * (@perfect-web)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753192)
 * Hello,
    try to change PHP to newer version and it should solve the problem. What
   is your current version of PHP? Maybe I could make it compatible.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753194)
 * Hello,
 * Thanks for your feedback!
 * The parse error is happening on a shared hosting that runs PHP version **5.2.17**.
   Unfortunately I can’t change this myself on those servers.
 * I then tried on another server that runs **PHP 5.3** and the plugin installed
   without problem. But, this time, I was completely unable to connect to OneDrive
   and always get this [ error](http://tinypic.com/r/vnc76c/8). I’ve never been 
   able to connect at all! Tried on several browsers but the result is always the
   same.
 * I also posted to your own plugin website the same image as I wanted to buy your
   PRO version, but I would like to get this work at least once and check how it
   looks like…
 *  Plugin Author [Gator Forms](https://wordpress.org/support/users/perfect-web/)
 * (@perfect-web)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753195)
 * I have just updated plugin to work with PHP 5.2. Try it now.
    About error which
   you gets from Microsoft I do not know anything.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753199)
 * Yes, that’s right, many thanks.
    The plugin installs now correctly.
 * But still, there is NO WAY to make it work.
    At both sites and servers, I get
   the same error – unable to connect. Which, of course, makes the plugin unusable!
 *  Plugin Author [Gator Forms](https://wordpress.org/support/users/perfect-web/)
 * (@perfect-web)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753223)
 * Make sure that if you access your site with www. then you have set also with 
   www. an URL in Windows Live Application Manager.
 * I have tested on my server and it is still working.
    I have no other clue for
   you how to solve it.
 * You can try to ask on Microsoft LiveSDK forum to get more informations why it
   can not connect.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753227)
 * Yes, this is already the case but doesn’t work.
    One site has www and the other
   doesn’t have. Restrict JWT issuing is set to NO – is that correct? Otherwise 
   I can’t see any other settings that might be wrong.
 *  Plugin Author [Gator Forms](https://wordpress.org/support/users/perfect-web/)
 * (@perfect-web)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753231)
 * Send me also a full URL from popup with error
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753240)
 * I get this message:
 * > We’re unable to complete your request
   >  Microsoft account is experiencing technical
   > problems. Please try again later.
 * with this URL:
 * [https://login.live.com/err.srf?lc=1033#error=invalid_request&error_description=The%20provided%20value%20for%20the%20input%20parameter%20’redirect_uri’%20is%20not%20valid.%20The%20expected%20value%20is%20’https://login.live.com/oauth20_desktop.srf’%20or%20a%20URL%20which%20matches%20the%20redirect%20URI%20registered%20for%20this%20client%20application.&state=redirect_type%3dauth%26display%3dpage%26request_ts%3d1396315393762%26response_method%3dcookie%26secure_cookie%3dfalse](https://login.live.com/err.srf?lc=1033#error=invalid_request&error_description=The%20provided%20value%20for%20the%20input%20parameter%20’redirect_uri’%20is%20not%20valid.%20The%20expected%20value%20is%20’https://login.live.com/oauth20_desktop.srf’%20or%20a%20URL%20which%20matches%20the%20redirect%20URI%20registered%20for%20this%20client%20application.&state=redirect_type%3dauth%26display%3dpage%26request_ts%3d1396315393762%26response_method%3dcookie%26secure_cookie%3dfalse)
 *  Plugin Author [Gator Forms](https://wordpress.org/support/users/perfect-web/)
 * (@perfect-web)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753246)
 * Full error message is:
 * _The provided value for the input parameter ‘redirect\_uri’ is not valid. The
   expected value is ‘[https://login.live.com/oauth20\_desktop.srf&#8217](https://login.live.com/oauth20_desktop.srf&#8217);
   or a URL which matches the redirect URI registered for this client application._
 * It means that URL registered in Windows Live Application Manager do not match
   with your website domain
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753250)
 * That’s crazy, I installed on 2 different domains and I double checked, all settings
   are absolutely correct and I get the same error at both sites:
 * You plugin asks for that:
 * > Remember to set Redirect domain: [http://www.mydomain.com](http://www.mydomain.com)
   > and Mobile client app: No.
 * At OneDrive his is exactly what I entered under API Settings:
 * Root domain: [http://www.mydomain.com](http://www.mydomain.com) (without leading
   http)
    Redirect URLs: [http://www.mydomain.com](http://www.mydomain.com)
 * I really don’t know what else to check in there!
 *  Plugin Author [Gator Forms](https://wordpress.org/support/users/perfect-web/)
 * (@perfect-web)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753251)
 * Sorry, I can not help you. This is the only meaning of this error which I know
   and I could find.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753252)
 * OK, no problem, I understand.
    I’ll experiment further again, but if you ever
   have a brilliant idea about this please let me know!
 * many thanks for your time.
 *  [xiaoker](https://wordpress.org/support/users/xiaoker/)
 * (@xiaoker)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753254)
 * Unfortunately, I have the same error
 *  [xiaoker](https://wordpress.org/support/users/xiaoker/)
 * (@xiaoker)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/#post-4753255)
 * I found OneDrive configuration page, Redirect URL: [http://www.mydomain.com/](http://www.mydomain.com/),
   automatically add the “/” character, is not this the reason?

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/parse-error-when-activating-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-when-activating-1/page/2/?output_format=md)

The topic ‘Parse error when activating’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pwebonedrive_7b8181.svg)
 * [Perfect OneDrive Gallery & File](https://wordpress.org/plugins/pwebonedrive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pwebonedrive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pwebonedrive/)
 * [Active Topics](https://wordpress.org/support/plugin/pwebonedrive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pwebonedrive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pwebonedrive/reviews/)

 * 30 replies
 * 3 participants
 * Last reply from: [xiaoker](https://wordpress.org/support/users/xiaoker/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-activating-1/page/2/#post-4753311)
 * Status: resolved