Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble with HMVC modular extensions for CodeIgniter

I've been developing locally on MacOS X Snow Leopard using PHP 5.3, CodeIgniter 2.0 and HMVC Modular Extensions. Everything has been working great.

Suddenly, for no reason I can pinpoint, I am occasionally getting this error when trying to bring up a page:

Unable to select the specified database: app Filename: /Library/WebServer/Documents/www/development/appdb/third_party/MX/Loader.php Line Number: 96

The error doesn't occur at any specific place, it just seems to appear every 5-10 page loads or so. It usually goes away after a refresh, although sometimes I may need to refresh a couple of times.

Has anyone encountered this error before? Is it just some flakiness in mySQL on my Mac? (I also tried exporting the current DB and re-importing it under a different name and assigning that new DB, but the problem persists. I don't know of a way to test and "repair" a MySQL DB on a Mac.)

Thanks in advance for any help!

Gary

like image 798
Gary Avatar asked Nov 04 '22 20:11

Gary


1 Answers

This is just an issue with your MySQL database. While I'm not sure what that issue is, HMVC has nothing to do with it.

The error comes from there as the loader is extended by HMVC, but no logic is changed. I'd fix up your database or install MAMP.

like image 160
Phil Sturgeon Avatar answered Nov 10 '22 05:11

Phil Sturgeon