| Author |
Message |
massdigitalmedia
User


Joined: Sep 05, 2003 Posts: 33
|
Posted: Mon Sep 08, 2003 12:59 pm Post subject: block-NG-mostPopular |
|
|
Having some problems where whenever I add this block, it crashes my site! Do I have to do something special for PHPNuke 6.9? The Gallery works fine. I do have the albums inside the gallery folder. Could that be a problem?
Thanks!
---- |
|
| Back to top |
|
|
AdBot
|
| Post subject: block-NG-mostPopular |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 08, 2003 1:15 pm Post subject: |
|
|
No problem with your albums folder. 'Crashes' how? Stops anything after the block from showing? Sometimes there is an issue with block being placed on the left. Have you tried moving it to the right? Can you leave the site active with the problem so we can see - or take a snapshot and place a link? _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
massdigitalmedia
User


Joined: Sep 05, 2003 Posts: 33
|
Posted: Mon Sep 08, 2003 1:21 pm Post subject: |
|
|
Well, I tried adding the block on the right, and when I do, the site dies. can't get to it at all. I haven't tried it on the left yet. There is no snapshot , because nothing happens when I add this block.
http://www.roadstargallery.com/index.php _________________ THANKS!
Scott |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 08, 2003 1:51 pm Post subject: |
|
|
Check in your ALBUMS directory for 'photo_list.cache'. If it doesn't exist try the following
Find this in the BLOCK:
Code: ›
$rebuild = 0;
if(fs_file_exists(ALBUMCACHE)) {
$stat = fs_stat(ALBUMCACHE);
$mtime = $stat[9];
if (time() - $mtime > EXPIRE_TIME) {
$rebuild = 1;
}
}
Replace with:
Code: ›
$rebuild = 1;
if(fs_file_exists(ALBUMCACHE)) {
$stat = fs_stat(ALBUMCACHE);
$mtime = $stat[9];
if (time() - $mtime > EXPIRE_TIME) {
$rebuild = 1;
}
}
_________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
massdigitalmedia
User


Joined: Sep 05, 2003 Posts: 33
|
Posted: Mon Sep 08, 2003 2:01 pm Post subject: |
|
|
Well, I tried that, and the same thing happened. Is there a random image block that will work instead?
Thanks! _________________ THANKS!
Scott |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 08, 2003 2:03 pm Post subject: |
|
|
Did the 'photo_list.cache' exist?
Try the NG-Random-Block in Downloads. You may have the same problem with that if your server doesn't generate the cache file _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
massdigitalmedia
User


Joined: Sep 05, 2003 Posts: 33
|
Posted: Mon Sep 08, 2003 2:08 pm Post subject: |
|
|
no, there was no cache file. I own the server, so is there a way around it?
Scott |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 08, 2003 2:15 pm Post subject: |
|
|
If you have telnet/ssh access, try this:
cd /path/to/your/albums/
sudo touch photo_list.cache
sudo chmod 777 photo_list.cache
That creates a blank file 'photo_list.cache'
or ftp:
Create an empty file called 'photo_list.cache'
Upload to albums directory, chmod 777
Follow the instructions -- as above (rebuild = 1) _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
strobeyprobey
Beginner


Joined: Jul 14, 2003 Posts: 4
|
Posted: Tue Sep 09, 2003 4:08 pm Post subject: Re: block-NG-mostPopular |
|
|
That touch command and setting the rebuild to 1 helped me out. Otherwise my site appeared frozen. It wasn't actually frozen, however, it was transfering mass amounts of data. When I accessed it locally from Lynx I stopped retrieving the home page when it exceeded 20 MB transfered!
BTW, the cache rebuild took my Nuke 6.8 homepage 12.45 seconds to generate down from the normal 0.7 seconds. I run a PII-300MHz w/384 MB RAM. |
|
| Back to top |
|
|
massdigitalmedia
User


Joined: Sep 05, 2003 Posts: 33
|
Posted: Sat Sep 13, 2003 10:08 am Post subject: |
|
|
No dice on that either...it's just like it's hanging there...I have it disabled for now. the cache file is getting built now, and I got the random image block working just fine.
Thanks!
Scott
http://www.roadstargallery.com _________________ THANKS!
Scott |
|
| Back to top |
|
|
|
|
|
|
|