| Author |
Message |
aiurea
Beginner


Joined: May 01, 2003 Posts: 3
|
Posted: Mon May 05, 2003 10:05 pm Post subject: phpnuke 6.5 & random block errors |
|
|
hi, first of all let me tell all of u who r running gallery on phpnuke 6.5 hosted onIIS, it sucks, didnt work for me, it worked for apache (this might save some guy's time) :>
I edit the .php files (those that appear in the error messages) from the random block $http_ things, and i reduced the errors to 3 now
Quote: ›
Warning: fopen(C:\Apache2\htdocs\modules\gallery\albums\block-random.cache): failed to open stream: No such file or directory in C:\Apache2\htdocs\modules\gallery\platform\fs_win32.php on line 48
Warning: Invalid argument supplied for foreach() in C:\Apache2\htdocs\modules\gallery\random_support.php on line 230
Warning: copy(C:\Apache2\htdocs\modules\gallery\albums\\.thumb.jpg): failed to open stream: No such file or directory in C:\Apache2\htdocs\modules\gallery\platform\fs_win32.php on line 26
and here is the cache line from the block
Quote: ›
define(CACHE_FILE, $gallery->app->albumDir . "/block-random.cache");
define(CACHE_EXPIRED, 86400);
i looked in the albums directorey which is in gallery folder , and i couldnt find any block-random.cache ... i am assuming thats the problem, cuz there is no cache........... any ideas how to fix this ?
if u wanna have a look, tell me and i'll give ya my website
btw i am using 1.3.3 & apache 2.0.45/phpnuke 6.5/php 4.3.2 |
|
| Back to top |
|
|
AdBot
|
| Post subject: phpnuke 6.5 & random block errors |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue May 06, 2003 3:01 pm Post subject: |
|
|
| the cache file is automatically generated every 24 hours. change the forward slash to a back slash in the cache_file definition. i've no experience in running this on windows, i'm a linux junkie. |
|
| Back to top |
|
|
aiurea
Beginner


Joined: May 01, 2003 Posts: 3
|
Posted: Sat May 10, 2003 12:05 pm Post subject: |
|
|
that didnt work
should i create the albums folder in the root directory of the webserver , or is it fine in modules/gallery/albums ? cuz i looked in the folder, and the cache file is missing, its not in there. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun May 11, 2003 11:56 am Post subject: |
|
|
it shouldn't matter where you have the albums located, as long as you specify it in the files properly and in your gallery config.
it could be an IIS issue...do you have the albums directory owner set as the webserver? |
|
| Back to top |
|
|
aiurea
Beginner


Joined: May 01, 2003 Posts: 3
|
Posted: Wed May 14, 2003 12:48 am Post subject: |
|
|
the access to the albums folder is set to "everyone' with full read/write etc
now i am down to these 2 errors
Code: › Warning: fopen(CACHE_FILE): failed to open stream: No such file or directory in C:\Apache2\htdocs\modules\gallery\platform\fs_win32.php on line 48
Warning: Invalid argument supplied for foreach() in C:\Apache2\htdocs\modules\gallery\random_support.php on line 230
any other ideas ? no one used the block on a windows server? |
|
| Back to top |
|
|
elight
Beginner


Joined: May 15, 2003 Posts: 1
|
Posted: Fri May 16, 2003 12:55 am Post subject: No one has figured this out yet? |
|
|
Whatever you did to change this script from the original code, broke it for windows. The original code for the random block, posted on the gallery site forums, works with windows NT server/apache 2/php 4.3.1 (as dll)/mod_perl.
Your code however, does not work. I had exactly the same errors as this user, even after fixing the gallery variables for php 4.3.1
Something changed in your code that really jacked up the way it worked with windows. I was going to fix it, but since the other code works out of the box, I am pushing ahead with other things and may come back to it later when I finish other things.
-Gene
Somewhere in the Kuwaiti desert... |
|
| Back to top |
|
|
|
|
|
|
|