laurencedawson / embr

Lightweight blog built using the CodeIgniter framework
129 stars 17 forks source link

Mysql issues #13

Open moos3 opened 13 years ago

moos3 commented 13 years ago

Fatal error: Call to a member function num_rows() on a non-object in /Users/moose/srv_backup/blog/embr/system/database/drivers/mysql/mysql_driver.php on line 381

Getting this. Ideas ?

laurencedawson commented 12 years ago

I think this may occur if you made an error when setting up embr with your db details. Check if your database was created, if not, repeat the installation process. Thanks

captaincuddles commented 12 years ago

Do you know if this will work with codeigniter_2.1.2 ? :DD

laurencedawson commented 12 years ago

Not tried in a while, can't see why it wouldn't :)

captaincuddles commented 12 years ago

do i upload all the ones in the app folder? or all of it?

laurencedawson commented 12 years ago

Use the installer, if you want to do it manually, open up install.sh and see what the installer does.

captaincuddles commented 12 years ago

lol sorry im new to this . do you know if CI already comes with the CI_Template or do i have to install that?

captaincuddles commented 12 years ago

that is what it keeps showing

laurencedawson commented 12 years ago

You have to install it, as I said earlier, all of this is in the installer and will be handled for you. I suggest you run the installer and then upgrade the system folder to the latest version of CI.

captaincuddles commented 12 years ago

im having a harder time installing the "CI template" :c

laurencedawson commented 12 years ago

The installer does this for you:

https://github.com/laurencedawson/embr/blob/master/install.sh

Line 19-24.

captaincuddles commented 12 years ago

what folder do i put "installer" in?

captaincuddles commented 12 years ago

like in the view folder or core? or something

laurencedawson commented 12 years ago

Clone the repository:

git clone git://github.com/laurencedawson/embr.git

Run the install script:

cd embr && sh install.sh

Blog settings can be changed by editing the file:

application/config/blog.php

captaincuddles commented 12 years ago

i dont get it because my host is hostgator.com so how install install.sh

laurencedawson commented 12 years ago

If you don't have ssh access, then you can't use embr.