Fatal error

thumb
thumb's picture

Joined: 2004-05-26
Posts: 238
Posted: Sun, 2007-11-04 22:06

I'm getting the following warning and error with g2image 3.0.2 with embedded G2.3 svn, Drupal 5.3, and gallery.module 5.x-2.0-beta5. Both Gallery and Drupal are multisite setups with clean urls enabled. My config file looks okay, everything's set okay.

Warning: require(streams.php) [function.require]: failed to open stream: No such file or directory in /home/username/drupal/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/gettext.inc on line 27

Fatal error: require() [function.require]: Failed opening required 'streams.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/username/drupal/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/gettext.inc on line 27
 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-11-05 14:16

First, make sure that streams.php is in /home/username/drupal/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/

Second, try changing lines 26-31 in gettext.inc from

if (!class_exists('CachedFileReader')) {
	require('streams.php');
}
if (!class_exists('gettext_reader')){
	require('gettext.php');
}

to

if (!class_exists('CachedFileReader')) {
	require('./streams.php');
}
if (!class_exists('gettext_reader')){
	require('./gettext.php');
}

You're basically just adding the ./ to force it to look in the current directory. (It should do this on it's own without the ./ but let's try it.)

Also, what version of PHP are you running?

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

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 238
Posted: Thu, 2007-11-15 06:44

Silly me. I hadn't uploaded all files from the package. Once I did, everything worked fine.

--
2tbsp.com