Installation problems.

A place to discuss and receive support for LCMS (Little Content Management System)

Postby paulkruger » Tue Jun 26, 2007 1:10 pm

I am having a lot of problems with LCMS.
Some were a result of an error on server quotas causing files to be uploaded as 0 bytes...this is fixed. Database connects.
Cannot access admin.php and get errors on the sample pages included with the install.

Datface info reports it is installed correctly.

-- admin login error --

Warning: mkdir(): open_basedir restriction in effect. File(/var/lib/php/session/dataface) is not within the allowed path(s): (/var/www/vhosts/mail2me.us/httpdocs:/tmp) in /var/www/vhosts/mail2me.us/httpdocs/dataface/Dataface/Application.php on line 556

Warning: ini_set(): open_basedir restriction in effect. File(/var/lib/php/session/dataface) is not within the allowed path(s): (/var/www/vhosts/mail2me.us/httpdocs:/tmp) in /var/www/vhosts/mail2me.us/httpdocs/dataface/Dataface/Application.php on line 557

-- Public Page errors --

Main pages. Clicking on "file system pages" places two errors.

One above the pages ( also on welcome page )

Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in /var/www/vhosts/mail2me.us/httpdocs/cms/public.php on line 86


and one within the page itself.

Fatal error: Call to a member function on a non-object in /var/www/vhosts/mail2me.us/httpdocs/cms/templates_c/default/%%D7^D73^D73BB5E8%%MainTemplate.html.php on line 50

---

Now on to try the librarian package.
paulkruger
 
Posts: 36
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Jun 26, 2007 1:46 pm

The first error is happening because your server has restrictions on where directories can be created. Dataface tries to create a separate directory to store its session data so that it isn't affected by other scripts.

You can fix this by changing the session save path to a directory where you have mkdir privileges. The error indicates that you should be able to do this in the /tmp directory.

e.g. you could add the following to the beginning of the inc/config.inc.php file:
session_save_path('/tmp');

The other errors may be related to the first error.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby paulkruger » Tue Jun 26, 2007 2:01 pm

That did it ! Is that something that should be added to the distribution version of config to eliminate that in the future..along with instructions to make a /tmp diretory CHMOD 777 ?

Also does the /webauction program need to write files and if so, I have no /tmp for the installation I have on www.bidasis.com/webauction and never had this error on that installation...actually it went quite easy.

Same server so same permissions to create files are in effect.

P.
paulkruger
 
Posts: 36
Joined: Wed Dec 31, 1969 5:00 pm

Postby paulkruger » Tue Jun 26, 2007 2:07 pm

Still one error showing on top of "welcome" page and "File System Page"

--


Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in /var/www/vhosts/mail2me.us/httpdocs/cms/index.php on line 86
paulkruger
 
Posts: 36
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Jun 26, 2007 2:53 pm

To eliminate this error you can:
1. Go to line 86 in index.php and add a '@' before the call to ob_end_clean(). THis will suppress errors. e.g. @ob_end_clean();
or
2. Add the following to the inc/config.inc.php file:
error_reporting(E_ALL ^ E_NOTICE);
This will supress notices.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby paulkruger » Tue Jun 26, 2007 4:29 pm

Of course you knew how to fix that?

*S* Hope you are having a great day.
paulkruger
 
Posts: 36
Joined: Wed Dec 31, 1969 5:00 pm


Return to LCMS Discussion

Who is online

Users browsing this forum: No registered users and 10 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved