2 lukamar Jan 07, 2008 19:32
![](http://www.gravatar.com/avatar/a15abcdf9c982ded4ee5acc579b31224?size=80&default=https%3A%2F%2Fforums.b2evolution.net%2Fmedia%2Fshared%2Fglobal%2Favatars%2Fdefault_avatar_unknown.jpg%3Fmtime%3D1659823855)
Is anyone running it successfully? I've uploaded and unpacked the b2ecommerce plugin, but when I go to the plugins folder to activate it, this is what I see:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ancestry/public_html/theholidaygiftsplace.com/plugins/b2commerce_plugin/_b2commerce.plugin.php on line 545
Line 545 has this:
public function BeforeEnable()
{
return true;
}
How do I fix this?
Sorry, if I'd have spelled the plugin name correctly in my original search, I would have found the other post on this problem, along with the answer -- which I have now found, and made the corrections, and I am seeing the plugin page in the back office. Thanks.
Glad you got it working! Could you add another reply though pointing out where you found the answer so the next person has an easier time? (Usually when you get no replies it's because no one else knows, so you're the expert now!)
Originally searched on "b2ecommerce" but the plugin is "B2commerce". A search on that term brought up this previous post:
http://forums.b2evolution.net//viewtopic.php?t=12037&highlight=b2commerce
I removed the entire block at line 545 and all instances of the word "public", clicked "Save Changes" and was good to go. I haven't made a blog post using it yet, though. I may not be home free.
WooHoo!! I love community based open source software.
Deleting the code block and getting rid of public worked beautifully!!
Thanks for sorting it before me.
Wouldn't it be wonderful if the developers of the plugin fixed the errors and posted a new version! If they'd just change the code once, hundreds of people wouldn't have to do it later.
(Bear in mind, I am NOT a programmer and lest, you think me ungrateful, know that I am most appreciative for the plugins and forum help!)
I've been working on this but I'm still having problems.
Would love some help if anyone has the time.
Thanks.