My solution was to enclose all the MRBS files in a namespace, eg

 

<?php

namespace MRBS;

 

Then as far as I remember there are a few places where you have to use a global function.    See the PHP documentation on namespace for more details.

 

The other way of doing it could be to comment out the utf8_ functions in language.inc that cause conflicts, but then you’d have to be sure they are functionally equivalent to their Joomla alternatives.

 

What puzzles me though is that it seems that the author of the bridge doesn’t have any problems, so I’m not entirely sure that I’ve been using the bridge properly.  But I hit exactly the same error messages as you.

 

Campbell

 

 

From: joachim.schreibmaier@hiway.at [mailto:joachim.schreibmaier@hiway.at]
Sent: 12 May 2014 05:02
To: mrbs-general@lists.sourceforge.net
Subject: Re: [MRBS-general] Joomla 3 authentication

 

Hi Campbell,

thanks for your reply. But I have a problem with the joomla Integration:
Fatal error:  Cannot redeclare utf8_substr() (previously declared in /www/htdocs/v101525/hp/libraries/phputf8/mbstring/core.php:98) in /www/htdocs/v101525/hp/reservierung_halle/language.inc on line 1159

Do you have a solution for me?

Best Regards,

Joachim

-----Ursprüngliche Nachricht-----
Von: <joachim.schreibmaier@hiway.at>
Gesendet 09.05.2014 05:37:43
An: mrbs-general@lists.sourceforge.net
Betreff: Joomla 3 authentication

Hi,



is it possible to authenticate in the mrbs with joomla 3 users?



best regards



Joachim