| Author |
Message |
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Sat Aug 16, 2003 5:47 am Post subject: Center screen is empty when uploading random block |
|
|
Hi,
I've downloaded the improved NG random block, but is does not work right.
When I add the NG Random block, the center screen gets empty. Only the left side is generated correctly.
I tried everything... navigating the other modules etc., but nothing seems the work than, ONLY when I go to my gallery, the Random block is functioning and the center screen is filled again. (Language of Gallery should be "Nederlands")
Any idea?
Code: › $GALLERY_BASEDIR = "/scoutnet/users/sv/modules/Gallery/";
define(ALBUM_BASEADDR, "http://sv.scoutnet.be/albums/");
define(SERVER_ADDR, "http://sv.scoutnet.be/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");
I've already searched the Forums-section, but I cannot find any applicalbe solution.
And since I'm asking...
I've a directory with more than 700 pictures uploaded.
When I want to add pictures to my Gallery I just specify the URL, Gallery only list the first 60 pictures. Since I cannot find an option specifying this behaviour, is this by default?
Please help...
Thanks,
Dave
----
Gallery URL (optional but very useful): http://sv.scoutnet.be/modules/Gallery
Gallery version: 1.3.4-pl1 ML34
Apache version: Apache/1.3.27
PHP version (don't just say PHP 4, please): 4.3.1[/url][/code] |
|
| Back to top |
|
|
AdBot
|
| Post subject: Center screen is empty when uploading random block |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat Aug 16, 2003 6:06 am Post subject: |
|
|
Try moving the RANDOM BLOCK to the right - see if that clears the error (I guess you may not want it on the right but it will determine if the fault is there).
http://sv.scoutnet.be/index.php |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Sat Aug 16, 2003 6:19 am Post subject: |
|
|
OK...
There is some progress...
I've moved it to the right side.
Center screen is working again, but now the block is not visible.
(Checked: Activated for all visitors) |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat Aug 16, 2003 6:45 am Post subject: Re: Center screen is empty when uploading random block |
|
|
Hmn - strange that NO errors show up?!!
Can you make an error show up? Or is there NEVER any errors?
Maybe looks for this in random_support.php:
Code: ›
} else {
$choose = rand(1, $count);
And replace with this:
Code: ›
} else {
$count = floatval($count);
$choose = rand(1, $count);
Until we can see an DISPLAYED ERROR - is difficult to find the fault?
Maybe Dari has the answer? |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Sat Aug 16, 2003 7:03 am Post subject: |
|
|
I've added the code..., but (unfortunately) no error and no "random picture"
PS: I've changed the language back to English. Thaught this would be better for you guys. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Aug 16, 2003 8:41 am Post subject: |
|
|
create a file called test.php and in it put:
Code: › <?php phpinfo(); ?>
post the result that has the root directory of your site, then delete the file. this will help us diagnose any possible path problems.
if the left side is generated, but nothing else, there should be some sort of error message. does the block say "there is a problem with this block right now" or "there is no content for this block" or anything like that?
you may want to turn on all error messages in your php.ini file if you can't find anything on the page. |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Sun Aug 17, 2003 6:07 pm Post subject: |
|
|
Added the new Albums block on the right side ("All" language)..., but without any result. Right side is not generated. (no new album block or no error).
When I put the block on the right side in Dutch --> Everything is generated except the new album block
When I put the block on the left side in Dutch --> no block, but everything else is loaded
When I put the block on the left side in "All" languages--> only the header is generated
When I put the block at center up in "All" languages --> only the left side and the center screen is visible. Right side isn't generated.
When I put the block at center up in Dutch --> Everything is generated except the new albums block
I've sent the url with the the phpinfo to you personally |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Aug 17, 2003 7:39 pm Post subject: |
|
|
| hmmm...this is interesting, it might very well have to do with the multilanguage capability. i'm running the latest 1.4.1-cvs-b1 on this site an phpnuke.nukedgallery.net (with only english) with no problems. i'll test out multilanguage over the next couple of days and see if there is a problem with it that needs to be addressed. |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Mon Aug 18, 2003 5:04 pm Post subject: |
|
|
Maybe this additional info can help?
I've renamed the both the "New Albums Block" and the "Random Picture Block"-files to *.pht and now I get an error message: There is a problem right now with this block.
Quiet obvious but maybe it helps analyzing the problem!
(Both blocks are on the right side)
Will it help if I upload 1.4.1-cvs-b1? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Aug 18, 2003 5:11 pm Post subject: |
|
|
| they have to be *.php files otherwise apache won't know how to parse the content. |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Mon Aug 18, 2003 5:23 pm Post subject: |
|
|
I know...
But I renamed them on purpose to generate some error and it did.
Now I know that the block is being "processed", but unfortunately not being displayed.
(Meantime files are renamed back to *.php) |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Aug 18, 2003 5:45 pm Post subject: |
|
|
The error message being generated is one from NUKE and not one from the server?! Nuke can't process the file so IT produces the error - we need the server to produce the error.
I would suggest installing the latest GALLERY (not ML) and see if it works (just create new folder in MODULES - not gallery, maybe called gallery1) |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Tue Aug 19, 2003 7:09 am Post subject: |
|
|
| Okay, will install it this evening (CET) |
|
| Back to top |
|
|
dendave
Beginner


Joined: Aug 11, 2003 Posts: 8
|
Posted: Tue Aug 19, 2003 8:06 pm Post subject: |
|
|
Yes!!!
I've installed Gallery v1.3.4-pl1 and now both the new Albums Block and Random Picture block works (as well on the left side as on the right side)
Is there a way to upload the Dutch language as additional language?
Or do you have another solution? |
|
| Back to top |
|
|
|
|
|
|
|