Posted by Fanny on November 13, 2007 at 9:08am
Jump to:
| Project: | Random Images |
| Version: | 5.x-1.1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Drunkensailor |
| Status: | closed (fixed) |
Issue Summary
May be i not right write path, but i try all variants. No images. No block in sidebar.
I create dir in document root. Called 'right'.
In module config - write path '/right/' (w/o ').
Place block in sidebar.
Results -
<div id="block-random_images-1" class="block block-random_images">
<div class="blockinner">
<div class="content">
<div class='random_image_container'></div> </div>
</div>
</div>
What i do wrong?
Comments
#1
+1 Exactly the same error.
Beside fixing possible bugs you could give somewhat more information on what the path may be. Maybe add an example. Thanks.
#2
Hello,
I had the same errors as "Fanny" and "jandoemen", but some additional experience;
Win XP, Xampp, Drupal 5.3
I installed, followed the instructions to the letter (and had to manually add the table ...). Then I added a block, a path and count.
Went to Block Administration to enable it, and Woops! NO SITE! Nothing ... Not even an error page. Just blank! Interesting. I know where it happened, but I do not know why, so, if anybody has a clue, I would be grateful.
- Christian
#3
Hm... I'm not good php programmer... But then i do whis:
@@ -120,10 +120,8 @@function theme_random_image_image($image_url)
{
$output = "";
- $base_path = base_path();
-
- $output .= "<img class=\"random_image_image\" src='$base_path/$image_url' />";
-
+
+ $output .= "<img class=\"random_image_image\" src='/$image_url' />";
return $output;
}
... all fine now
#4
Hi Fanny,
This all Chinese to me! If you are not a programmer, I'm even less ...
Could you tell me where/in which file, you do this? I'd love to see this work
- Christian
Update; I finally understood what you meant with the codeline, and I have tried with a fresh version - new database, new install of site and modules. Made all the basic setup inclu. the table in MySQL. Finally I edited the random_images.module with the suggested line.
But the story repeats; when I go to Block Administration to enable it, the site goes blank. There is nothing. No theme, no nothing. And it's not reversible!
So, I'm a bit lost here. Help is appreciated.
#5
Hello, Christian!
Which theme? Which browser?
Can you post php or apache logs?
- Andrey
#6
Sorry for the troubles. I've fixed the install issue (I just updated this to 5.x a week or two ago). I'll get the new version up asap. This is my first release, so please bear with me while I figure the system out.
Drunkensailor: If the module is causing your white screen, you can access your site by removing the module folder. I'm going to look into that, and it would help a bunch if you could post the most recent entries in your apache error_log.
Chris.
#7
First, here is the latest entries from the Apache error.log:
PHP/5.2.3 configured -- resuming normal operations
[Mon Nov 19 22:17:20 2007] [notice] Server built: Mar 5 2007 11:23:00
[Mon Nov 19 22:17:20 2007] [notice] Parent: Created child process 5620
[Mon Nov 19 22:17:21 2007] [notice] Child 5620: Child process is running
[Mon Nov 19 22:17:21 2007] [notice] Child 5620: Acquired the start mutex.
[Mon Nov 19 22:17:21 2007] [notice] Child 5620: Starting 250 worker threads.
[Mon Nov 19 22:17:21 2007] [notice] Child 5620: Starting thread to listen on port 443.
[Mon Nov 19 22:17:21 2007] [notice] Child 5620: Starting thread to listen on port 80.
[Tue Nov 20 12:07:07 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Tue Nov 20 12:07:07 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Tue Nov 20 12:07:07 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Tue Nov 20 12:07:07 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Tue Nov 20 12:07:11 2007] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3 configured -- resuming normal operations
[Tue Nov 20 12:07:11 2007] [notice] Server built: Mar 5 2007 11:23:00
[Tue Nov 20 12:07:11 2007] [notice] Parent: Created child process 3024
[Tue Nov 20 12:07:12 2007] [notice] Child 3024: Child process is running
[Tue Nov 20 12:07:12 2007] [notice] Child 3024: Acquired the start mutex.
[Tue Nov 20 12:07:12 2007] [notice] Child 3024: Starting 250 worker threads.
[Tue Nov 20 12:07:12 2007] [notice] Child 3024: Starting thread to listen on port 80.
[Tue Nov 20 12:07:12 2007] [notice] Child 3024: Starting thread to listen on port 443.
#8
Hello there,
I'm working with the Garland theme in Firefox 2.0.0.9, and viewing the final in IE (just to check, if it looks 'funny').
I'll be happy to post any info, you'll need. Just posted the latest from the Apache error.log. What data from the PHP, do you need to see?
- Christian
#9
Hi Chris,
I thought it could be useful for you, if I posted this too:
Just did as you said, removed the modules folder, then started the server (Apache/sql), and then I could open the site (thanks!), and in addition, I got this:
* warning: include_once(./themes/engines/phptemplate/phptemplate.engine) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\nordlogic\modules\system\system.module on line 1021.
* warning: include_once() [function.include]: Failed opening './themes/engines/phptemplate/phptemplate.engine' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\nordlogic\modules\system\system.module on line 1021.
* warning: include(.//block.tpl.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\nordlogic\themes\engines\phptemplate\phptemplate.engine on line 393.
* warning: include() [function.include]: Failed opening './/block.tpl.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\nordlogic\themes\engines\phptemplate\phptemplate.engine on line 393.
* warning: include(.//default.tpl.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\nordlogic\themes\engines\phptemplate\phptemplate.engine on line 393.
* warning: include() [function.include]: Failed opening './/default.tpl.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\nordlogic\themes\engines\phptemplate\phptemplate.engine on line 393.
Hope it can provide some more to work with ...
- Christian
#10
Hello there,
Having tried with the updated version, I can confirm that table is now correctly build in the database, but:
The problems of the site disappearing remains. I have tried with a fresh version of Drupal 5.3, the latest version of Xampp (SQL 5.0.45).
First I checked functionality with the basic setup, and it was fine. Then I added modules, still fine. Finally I added Random Images, added pictures, configured according to instructions, and finally went to enable the block, and ...... No site!
Now I know, I can remove the module folder, and retrieve my site, but it still leaves the problem of the module (my use of it). I would like to know what the differences are compared to the other users, who see this module working on their sites.
I don't know how critical this is, but it sure would be nice to see a solution. Basically, I need to find a method to have random images in the site. Having tried with other solutions, I found it to be an obvious method.
Tried a method with Images, Views and Gallery, and it worked, but when clicking on the thumbs, they opened in full size in a node. Rather illogic ..!
Well, all in all pleased with Drupal.
- Christian
#11
If you are still working with this, try the dev release. I changed some questionable path-setting code and cleaned up a few things. The admin UI will now tell you if you pick an invalid path.
Chris.
#12
i have same error with random image module, but for image randomizer, I make this with module images (without random image):
in line 465 sities/all/modules/image.module
--------------------------------------------------------------------------------------------------------------------------------------
case 1:
/**Modificado por Jorge Solis jorgeluissolis@gmail.com //12:15 p.m. 02/05/2008*/
$images = image_get_random(5);
$block['subject'] = t('Random image');
$block['content'] =
l(image_display($images[0], IMAGE_THUMBNAIL), 'node/'. $images[0]->nid, array(), NULL, NULL, FALSE, TRUE)." ".
l(image_display($images[1], IMAGE_THUMBNAIL), 'node/'. $images[0]->nid, array(), NULL, NULL, FALSE, TRUE)." ".
l(image_display($images[2], IMAGE_THUMBNAIL), 'node/'. $images[0]->nid, array(), NULL, NULL, FALSE, TRUE)." ".
l(image_display($images[3], IMAGE_THUMBNAIL), 'node/'. $images[0]->nid, array(), NULL, NULL, FALSE, TRUE)." ".
l(image_display($images[4], IMAGE_THUMBNAIL), 'node/'. $images[0]->nid, array(), NULL, NULL, FALSE, TRUE)." "
;
break;
-----------------------------------------------------------------------------------------------------------------------------------------
This display 5 images random, but if you wanna more...
change: image_get_random(5); and $block['content'].
Before navigate to Administer->Site Building->Blocks and add Random image block
#13
Still not enough info to go on here, and I've yet to see this bug in action.
#14
Please don't continue this issue in my name. I am not using this module any more, and it will be more appropiate to assign it in another name, thanks.