Parse error when activating
-
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
-
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
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.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. 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…
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.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!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.
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.Send me also a full URL from popup with error
I get this message:
We’re unable to complete your request
Microsoft account is experiencing technical problems. Please try again later.with this URL:
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’ 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
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 and Mobile client app: No.
At OneDrive his is exactly what I entered under API Settings:
Root domain: http://www.mydomain.com (without leading http)
Redirect URLs: http://www.mydomain.comI really don’t know what else to check in there!
Sorry, I can not help you. This is the only meaning of this error which I know and I could find.
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.
Unfortunately, I have the same error
I found OneDrive configuration page, Redirect URL: http://www.mydomain.com/, automatically add the “/” character, is not this the reason?
The topic ‘Parse error when activating’ is closed to new replies.