#1 2016-06-24 14:59:33

PGrafiek
Member
Registered: 2013-03-18
Posts: 24

[SOLVED] dbprefix

Hi,

i tried to install a second ionize CMS on one database, by adding a dbprefix in database.php file and in the sql file for each table.
i can connect to the admin, but an error occured :

Fatal error: Call to a member function num_rows() on boolean in 
/home/codedesiga/test/application/models/base_model.php on line 633

The same error message displays on front-end.

Is there a (simple) way to run multiple installation on a single database ?

Thank you
P.Grafiek

Last edited by PGrafiek (2016-06-25 14:03:44)

Offline

#2 2016-06-24 20:15:02

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: [SOLVED] dbprefix

Dear P.Grafiek,

Unfortunatley IO has multiple SQL Select which does not use the Query Builder class, thats why the dbprefix is not working. For your question there is a "simple" way, but thats require to modify the CodeIgniter Database class for preg_replace the database names with prefixed version.

Best Regards,
Adamos42


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

#3 2016-06-25 14:02:54

PGrafiek
Member
Registered: 2013-03-18
Posts: 24

Re: [SOLVED] dbprefix

Thank you Adamos42 !
I think it is a tricky job for me...
Best
P.Grafiek

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations