meeting-room-booking-system / mrbs-code

MRBS application code
Other
127 stars 62 forks source link

Fatal error after upgrade joomla from version 2.5 to 3.x #2288

Open jberanek opened 6 years ago

jberanek commented 6 years ago

Hello, upgraded Joomla 2.5 to 3.8.11 , My mrbs version is still from ~ 2013. After the upgrade I am getting the below error message when calling the mrbs. "Fatal error: Cannot redeclare utf8_substr() (previously declared in /xxxxx/libraries/vendor/joomla/string/src/phputf8/mbstring/core.php:92) in /homepages/8/d218157135/htdocs/wsb4648608201/mrbs/language.inc on line 1159"

can you help? I have attached the language inc. best regrds

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1580

Attachments: https://sourceforge.net/p/mrbs/support-requests/1580/attachment/language.inc

jberanek commented 6 years ago

Are you using the Joomla-MRBS bridge? If so, this is a known problem. You need to upgrade to the latest version of MRBS where Joomla authentication is now included as standard.

Original comment by: campbell-m

jberanek commented 6 years ago

Sorry, forgot to put my name: best regards Horst Becker (horst@vck-celle.de)

Original comment by: *anonymous

jberanek commented 6 years ago

Not sure if I using a joomla-mrbs bridge. the autentification runs through joomla, if this is what you mean. my mrbs version seem to be 1.4.10 - this is what is stored in version.inc

Is the upgrade to last version to be done outside of the web hosting (joomla server)? regrds

Original comment by: *anonymous

jberanek commented 6 years ago

or simply copying all files to the host via ftp? can I reuse my changed former config.inc.php ? Regards

Original comment by: *anonymous

jberanek commented 6 years ago

I think you must be using the bridge software, because Joomla support wasn't included in MRBS 1.4.10.

To upgrade to the latest version of MRBS, you need to

  1. Download the latest version of MRBS (currently 1.7.1)
  2. Take a backup of your database, just in case anything goes wrong
  3. Take a backup copy of your MRBS folder, just in case anything goes wrong
  4. Upload using FTP all the new MRBS files - except the config file - to your web server
  5. Launch MRBS in your browser. You will ber prompted for a database username and pasword so that the database can be updated.

You will need to set the following in your config file, modifying the settings as appropriate:

$auth['type'] = 'joomla';
$auth['session'] = 'joomla';

// 'auth_joomla' configuration settings
$auth['joomla']['rel_path'] = '..';   // Path to the Joomla! installation relative to MRBS.

// [Note that although in Joomla! access levels are solely used for what users are allowed to *see*, we use
// them in MRBS to determine what they can see and do, ie we map them onto MRBS user levels.  While this
// does not strictly follow the Joomla! access control model, it does make it much simpler to give users
// MRBS permissions.]

// List of Joomla! viewing access level ids that have MRBS Admin capabilities.  You can if you wish use
// the existing viewing access levels.  However we recommend creating a new access level, eg
// "MRBS Administrator" and assigning that to user groups, as it will then be clearer which groups
// have what kind of access to MRBS.
$auth['joomla']['admin_access_levels'] = array(); // Can either be a single integer, or an array of integers.
// As above, but for ordinary user rights.  Create for example a viewing access level called "MRBS User"
// and assign that level to user groups as appropriate.
$auth['joomla']['user_access_levels'] = array(); // Can either be a single integer, or an array of integers.

Original comment by: campbell-m

jberanek commented 6 years ago

Thank you Sir . two more questions: calling mrbs first time without a config file to be prompted for db name and password, or with a changed config file? Can I reuse my former config.inc.php file , simply changing the joomla top part with what you wrote above? Regrds

Original comment by: *anonymous

jberanek commented 6 years ago

(1) Use your changed config file (as in (2) below) (2) Yes, keep your old config file and just change the joomla parts.

Original comment by: campbell-m

jberanek commented 6 years ago

Thank you sir.

Original comment by: *anonymous

jberanek commented 6 years ago

Although ...still need to bother you, there are tons of errors. latest is relating to the joomla access. the copied version tris to open local host etc .. So I am wondering where I tell the config.inc.php the name of the sql server, database, password and so on. Seem to be atrange to add this directly into the file, right? regrds

Original comment by: *anonymous

jberanek commented 6 years ago

Yes, you should have the sql server, database, username and password in the config file - just like you already have in your old MRBS 1.4.10 installation.

[If you are worried about security then there are a number of ways of reducing the risk of your database details being discovered. For example, store them in an include file that is held outside the web root. But for the moment it is sufficient to put them in the config file, just like they were before.]

Original comment by: campbell-m

jberanek commented 6 years ago

I am sending a PN via Mail. best regrds

Original comment by: *anonymous