Warning Message on image chooser

lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Wed, 2008-03-12 20:18

I'm getting this message three times at the top of the image chooser pop up. Does anyone know how to fix it.

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../wp-config.php) is not within the allowed path(s): (/home/lvthunde/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/lvthunde/public_html/modules/gallery/g2image/init.php on line 50

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2008-04-23 12:22

Sorry for the delay in replying. Life got in the way of G2Image work for a while. I'm back to some development, trying to get G2Image upgraded to work with TinyMCE 3.0 first, and then to wrap up G2Image 3.1 and get it out the door.

What system are you using G2Image with? (WordPress, Joomla, Drupal, Geeklog, etc?) The reason you're getting the error is some poor coding on my part in the initialization code. I've fixed it in the development code for 3.1, but I need to know which CMS you're using to tell you how to patch it in the best way as a work around for now.

Thanks,
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Wed, 2008-04-23 14:17

That's OK. I just hope it was life in a good way.

Anyways I'm using Drupal. Just straight Drupal no TinyMCE.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2008-04-24 01:10

It's been real life in a good way. Lots of work (as opposed to no work, which would be bad), 3 kids, and lots of Scouting activities. All good, but not conducive to focusing on code...

Anyway, you should be able to comment out the entire part that's looking for WPG2 in g2image/init.php. Add /* and */ to comment out that whole block. It should end up looking like:

// Determine if in a WordPress installation by checking for wp-config.php
/* for ($count = 1; $count <= 7; $count++) {

and

		else
			$g2ic_options['default_action'] = 'wpg2_image';

		break;
	}
} */

That should kill the offending code without any side effects, since you're definitely not in a WordPress installation.

It's coded better in the 3.1 development code, so it doesn't start doing the regressive look until it already knows it's in WordPress.

Thanks,
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2008-04-25 02:07

That worked. Thanks.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Fri, 2008-04-25 10:14

Great! Thanks for the feedback.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website