Error with script/generate

6 views
Skip to first unread message

Kaerigan

unread,
May 15, 2007, 4:15:56 PM5/15/07
to Akelos Framework
Hello, I just found Akelos and wanted to try it out. Everything works
until I try to generate something with the script/generate file. I get
no response, so I went here and looked for similar problems, and found
that I should put the line

define('AK_ERROR_REPORTING_ON_SCRIPTS', E_ALL);

in config/config.php . I am quite puzzled by what happens after adding
that line and once again trying to use script/generate:

Fatal error: Call to undefined function mysql_pconnect() in <path>
\akelos\vendor\adodob\drivers\adodb-mysql.inc on line 366

Now, if I create a single .php file and connect to a database with
mysql_pconnect(), it works. Kind of strange, nyah?

I have PHP 5.1.4 (cli), am running an Apache 2 server with one of the
latest releases of MySQL.

bermi

unread,
May 15, 2007, 4:48:50 PM5/15/07
to Akelos Framework
Thats pretty strange,

It seems like you have two different PHP versions installed or at
least two different configurations.

Check if both versions are the same by trying

/usr/bin/env php -v

and

php -v

If they are the same, check your current mysql settings by typing

/usr/bin/env php -i | grep mysql

You should see something like

mysql.allow_persistent => On => On

fan...@gmail.com

unread,
May 24, 2007, 10:01:23 AM5/24/07
to Akelos Framework
Are you sure it works in the single file version, and not that you
just have error_reporting set to something other than E_ALL (or a
setting that would throw this error) on the standlone file version.
Can you actually make database calls? Because that error would suggest
you don't have mysql compiled with your php implementation. Check your
phpinfo() to see if mysql is installed.
Reply all
Reply to author
Forward
0 new messages