Topic-icon Fatal error when viewing article

Active Subscriptions:

None
14 years 1 month ago #21945 by risap
Installed and re-installed the product, and it did work very briefly, but now getting:

Fatal error: Call to undefined function mb_substr() in /home/digenieh/public_html/mc/libraries/sourcecoast/articleContent.php on line 333

the site is at:

www.digeniehost.co.uk/mc

e.g. error page:

www.digeniehost.co.uk/mc/index.php/blogs...2012-stage-1-preview

If I turn off the component Content - JFBCContent then the page displays OK, obviously without the plugin.

Please advise urgently.
The topic has been locked.
Support Specialist
14 years 1 month ago #21949 by alzander
The mb_substr is a function that is a part of PHP by default. It sounds like your hosting company disabled it, which is uncommon, but apparently happens. You can work around this by editing that file, finding the line at 333 that should look like:
$articleText = mb_substr($articleText, 0, $numCharacters, 'UTF-8');
And changing it to:
$articleText = substr($articleText, 0, $numCharacters);
If you're site uses non-Latin characters (accents, greek letters, etc), the fix above will cause other issues as well. We'd recommend contacting your hosting company to have them enable the mb_substr function as the best fix.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #21952 by risap
Thanks for your prompt reply - I un-installed and re-installed and now it is working OK, but JFBConnect is not appearing in the Admin area under the components area!

Any idea how I can fix this? I can get to the component by going to

administrator/index.php?option=com_jfbconnect

Also, just a thought for future releases but I've noticed a few sites, e.g. www.telegraph.co.uk, seem to be replacing the icons generated by the social networks with their own, as they all line up nicely!!!
The topic has been locked.
Support Specialist
14 years 1 month ago #21968 by alzander
Rish,
I'm unsure why the menus would be gone. That sounds like a Joomla issue either from the un-installation or the installation. Not sure how to fix it.. my best suggestion, strangely, would be to uninstall and re-install again and hope that Joomla can clear itself up. The install packages for extensions don't create the menus directly, and rely on Joomla to do that, so it's somewhat out of our hands...

When you uninstall, JFBConnect doesn't remove your configuration settings, so you won't need to start over from scratch.

Finally, for the social networking buttons, we're always working on improvements to them. There are big limitations to what you can do to the look and feel of the Facebook (and other) buttons, but there are some 'mega' sites that have the abilities to get around these limitations. It's not always possible for an extension that's meant to be used on thousands of sites though. We do appreciate the feedback though, and things like the box-count and button-count look of the buttons should all lined up properly as-is. If you're seeing something different, let us know.

Thanks,
Alex
The topic has been locked.