Problem After installation..

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Coyote85

Problem After installation..

Post by Coyote85 »

After complete all the installation steps I get this error:

Warning: mysql_pconnect() has been disabled for security reasons in /home/nf000432/public_html/cms/lib/adodb/drivers/adodb-mysql.inc.php on line 355

Warning: Smarty error: unable to read resource: "db:-1" in /home/nf000432/public_html/cms/lib/smarty/Smarty.class.php on line 1088

What I did wrong?

Thanks in advance for your help

http://coyote85.blogdrive.com
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

Re: Problem After installation..

Post by jptechnical »

Is this during the installation or after when you click on the link to your new cms site?

It sounds an awful lot like a php function has been disabled by your host. Re-upload cmsms (backup your config.php) and see if it works. Otherwise do another clean install.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Problem After installation..

Post by Ted »

Yeah, I'm noticing more and more that persistent database connections are not welcomed on some hosts.    Quick fix for this would be to change include.php at line 98 (I think it's 98, I'm working from svn, please check first) from:

Code: Select all

$db->PConnect($config["db_hostname"],$config["db_username"],$config["db_password"],$config["db_name"]);
to

Code: Select all

$db->Connect($config["db_hostname"],$config["db_username"],$config["db_password"],$config["db_name"]);
That will fix your problems.  I promise to make this configurable in the next release.  It's going on the TODO list right now.

Thanks!
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

Re: Problem After installation..

Post by jptechnical »

I didn't realise that the default install was a persistent connection. I work almost entirely with shared servers and I guess I have just got a good host that allows it.

I know for a fact I have a good host because he gave me shell access on a shared account last week to do some major forum export/import work. Just a plug, Burton Hosting is based in the UK and has servers in Florida on a big pipe. I have been with them for 3-4 years and have had really really good support and service. www.burtonhosting.com
Coyote85

Re: Problem After installation..

Post by Coyote85 »

Thank's a lot, I made the code change and now I can see the "CMS Install Successful! Homepage"
Coyote85

Re: Problem After installation..

Post by Coyote85 »

Bad news...

I run the Upgrade System and I get a lots of errors.

I'm not a programmer so, I don't understand where it's the problem.   :-(

Code: Select all

Upgrade System
Upgrading config.php...[done]

Clearning cache dirs...[done]


Warning: mysql_pconnect() has been disabled for security reasons in /home/nf000432/public_html/cms/lib/adodb/drivers/adodb-mysql.inc.php on line 355

Added item_order to existing items... [done]

Creating additional_users table... [done]

Updating schema version... [done]

Creating adminlog table...[done]

Creating userprefs table...[done]

Creating indexes...[done]

Updating sections table schema...[done]

Updating user table schema...[done]

Hashing passwords...[done]

Updating content types...[done]

Added item_order to existing sections... [done]

Reseting cache update time...[done]

Updating schema version... [done]

Creating sequences...[done]

Creating modules table...[done]

Adding parent_id to pages table...[done]

Removing section_id from pages table...[done]

Removing sections table...[done]

Adding module admin permission... 
Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/nf000432/public_html/cms/lib/adodb/drivers/adodb-mysql.inc.php on line 215
[done]

Clearing cache and template directories... 
Warning: opendir(/home/nf000432/public_html/cms/install/smarty/cms/templates_c/): failed to open dir: No such file or directory in /home/nf000432/public_html/cms/install/upgrades/upgrade.3.to.4.php on line 80

Warning: readdir(): supplied argument is not a valid Directory resource in /home/nf000432/public_html/cms/install/upgrades/upgrade.3.to.4.php on line 81

Warning: opendir(/home/nf000432/public_html/cms/install/smarty/cms/cache/): failed to open dir: No such file or directory in /home/nf000432/public_html/cms/install/upgrades/upgrade.3.to.4.php on line 80

Warning: readdir(): supplied argument is not a valid Directory resource in /home/nf000432/public_html/cms/install/upgrades/upgrade.3.to.4.php on line 81
[done]

Updating schema version... [done]

Creating modify files permission...
Fatal error: Call to undefined function: cms_mapi_create_permission() in /home/nf000432/public_html/cms/install/upgrades/upgrade.4.to.5.php on line 5
Olaf
Forum Members
Forum Members
Posts: 32
Joined: Sun Jan 23, 2005 12:31 pm

Re: Problem After installation..

Post by Olaf »

Had the first problem with the persistent connection and solved it with changing pconnect to connect. Everything seems to work but in Admin under Filemanagement> Imagemanager there's this error in the center:

Fatal error: Failed opening required 'Files.php' (include_path='') in /home/sites/site83/web/cms/lib/filemanager/ImageManager/Classes/ImageManager.php on line 9

I can uploads files but the message sticks.

Any ideas what it could be?

btw, in the zip 9rc2 there's missing the dirs uploads, uploads/images, tmp/templates_c. It's not difficult to make them yourself but for totally newbies it might be confusing.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Problem After installation..

Post by Ted »

0.9rc2 is kind of old...  you should upgrade to 0.9.2.
Olaf
Forum Members
Forum Members
Posts: 32
Joined: Sun Jan 23, 2005 12:31 pm

Re: Problem After installation..

Post by Olaf »

Sorry, meant that.. looked at the wrong dir.
Tahutu, no, hatutu I mean!
Locked

Return to “[locked] Installation, Setup and Upgrade”