Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Parse Error : unexpected t-string in (file) on line 41*
Hi there.
I get this error when I try and enable the plugin:
Parse error: syntax error, unexpected T_STRING in /mnt/stor3-wc2-dfw1/485991/www.jaycraft.co/web/content/vanilla/plugins/addthis/class.addthis.plugin.php on line 41
I looked at line 41 of that file, and this is what it says. I have not altered it at all btw.
$Style = C('Plugin.AddThis.Style', 'AddThis Style');
Tagged:
0
Best Answer
-
UnderDog MVP
Looks like something is still wrong on line 41
Maybe you should try and remove some quotes (`) and see what happens
Do NOT i repeat do NOT remove the regular quotes (')There was an error rendering this rich post.
0
Answers
Looks like something is still wrong on line 41
Maybe you should try and remove some quotes (`) and see what happens
Do NOT i repeat do NOT remove the regular quotes (')
There was an error rendering this rich post.
Okay thanks, I will try that later.
40 $Lang = C('Plugin.AddThis.lang', 'Language');
no comma '
shoudnt that be a ' after Language ? looks weird on mine
There was an error rendering this rich post.
this should really be fixed by the plugin maker @bh8vn
he can close quotes. A decent editor, with color coding should pick this up. However it si alway a good idea to run you plugin if any changes are made.
grep is your friend.
is there any solution to it yet or not?
today i also got the same problem
In the File "/plugins/addthis/class.addthis.plugin.php on line 41"
Replace:
$Lang = C('Plugin.AddThis.lang', 'Language);
With:
$Lang = C('Plugin.AddThis.lang', 'Language');
Re-upload, problem solved.
(On style 3 it looks like it puts the facebook in german or french "Thich") - It also looks like it might not be using the custom ID you specify in the admin as it has this ID which all 5 instances should be find/replaced:
ra-4f2d3eb91a96ddbc
See:
http://vanillaforums.org/discussion/21023/add-this-toolbar-unofficial-patch-1-2-2012-07-29#latest