Page 1 of 1

open_basedir error

Posted: Fri Jun 15, 2007 7:50 pm
by milagro
I just installed CMS Made Simple 1.0.7  after installation the modules Album and  PageBlocks
I am  getting a  open_basedir error. Can any one tell me what I can do about it?

Code: Select all

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/classes/module/class.Album.php) is not within the allowed path(s): (/www/web2839:/tmp) in /www/web2839/html/modules/Album/Album.module.php on line 33

Warning: main(classes/module/class.Album.php) [function.main]: failed to open stream: Operation not permitted in /www/web2839/html/modules/Album/Album.module.php on line 33

Fatal error: main() [function.require]: Failed opening required 'classes/module/class.Album.php' (include_path='.:/usr/share/pear') in /www/web2839/html/modules/Album/Album.module.php on line 33 



Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/lib/blockcontent.functions.php) is not within the allowed path(s): (/www/web2839:/tmp) in /www/web2839/html/modules/PageBlocks/PageBlocks.module.php on line 28

Warning: main(lib/blockcontent.functions.php) [function.main]: failed to open stream: Operation not permitted in /www/web2839/html/modules/PageBlocks/PageBlocks.module.php on line 28

Fatal error: main() [function.require]: Failed opening required 'lib/blockcontent.functions.php' (include_path='.:/usr/share/pear') in /www/web2839/html/modules/PageBlocks/PageBlocks.module.php on line 28 
I don't know if these information helps anyway:
open_basedir /www/web2839:/tmp

Re: open_basedir error

Posted: Sat Jun 16, 2007 3:34 pm
by milagro
Any one?
I really can need some help on these!

Re: open_basedir error

Posted: Tue Jun 19, 2007 8:33 am
by milagro
I have found the answer: ;D

Code: Select all

// Create Album Admin object (action.defaultadmin.php)
#require 'classes/module/class.AlbumAdmin.php';
require '../modules/Album/classes/module/class.AlbumAdmin.php';


# This file holds the Album class which extends the CMSModule class (Album.module.php)
#require 'classes/module/class.Album.php';
require '../modules/Album/classes/module/class.Album.php';


(Class.Album.php)

#if (TRUE == file_exists(dirname(__FILE__).'/../../../PageBlocks/lib/classes/class.blockmodule.inc.php'))
if (TRUE == file_exists('../modules/PageBlocks/lib/classes/class.blockmodule.inc.php'))
  {
#include_once dirname(__FILE__).'/../../../PageBlocks/lib/classes/class.blockmodule.inc.php';
include_once '../modules/PageBlocks/lib/classes/class.blockmodule.inc.php';
#include 'class.AlbumBlockContent.php';
include '../modules/Album/classes/module/class.AlbumBlockContent.php';
  }






(PageBlocks.module.php)
require_once( '../modules/PageBlocks/lib/blockcontent.functions.php');
require_once( '../modules/PageBlocks/lib/classes/class.blockcontent.inc.php');
require_once( '../modules/PageBlocks/lib/classes/class.blockmodule.inc.php');
require_once( '../modules/PageBlocks/classes/class.ImageText.php');
require_once( '../modules/PageBlocks/classes/class.Text.php');
// require_once( 'classes/class.PageBlocksContent.php');


(class.blockmodule.inc.php)
require_once '../modules/PageBlocks/lib/classes/class.blockcontent.inc.php';    

Re: open_basedir error

Posted: Tue Jun 19, 2007 9:50 am
by milagro
Now iam geting a error trying to add a block

Fatal error: Call to a member function IsWYSIWYG() on a non-object in /www/web2839/html/admin/footer.php on line 56