Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Sorry, such file doesn't exist...

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Author Message
Cheryan

Beginner
Beginner


Joined: Oct 13, 2004
Posts: 6

PostPosted: Sat Nov 12, 2005 3:47 pm    Post subject: Sorry, such file doesn't exist... Reply with quote

When trying to upload pictures via url, or when trying to change for instance an album title the popup window says "Sorry, such file doesn't exist..."
The fist pop-up works fine. I mean, I can see the initial screen, but when I press the 'save' or 'send url' button the "Sorry, such file doesn't exist.."-part shows up.

The fun is, that when I use the gallery directly, so without php-nuke via http://www.walrecht.net/modules/gallery, it all works fine (I can upload, change album titles, etc). So I guess it is the phpnuke integration that is somehow not comple, or wrong.
I would like gallery to function within php-nuke, so does anyone have a suggestion?

I also have the html source of a Sorry, such file doesn't exist..-window, perhaps that could be of assistance:

Code: ›
<html>
<head>
  <title>Foto's toevoegen</title>
</head>
<frameset rows="100%, 0%" border=0 frameborder=0 framespacing=0>
  <frame src="http://www.walrecht.net/modules.php?set_albumName=album06&amp;type=popup&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=add_photos.php" noresize />
  <frame name="hack" src="" noresize noscroll />
</frameset>

<!-- This is a hack that's needed for the GR applet to be able to
call add_photos_refresh.php without a big ugly page popping up:
we hide the page inside the second (hidden) frame in this set. -->

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL: http://www.walrecht.net/modules.php?name=gallery
Gallery version: 1.5.1
Apache version:3.1b (Unix) mod_ssl/2.8.16 OpenSSL/0.9.6k, release 10328100
PHP version (don't just say PHP 4, please):4.3.4
Graphics Toolkit:NetPBM
Operating system: Linux
Web browser/version (if applicable): Firefox / IE
PHP-nuke version 7.8
The CONFIG lines from the top of your block file(s):
Your gallery config.php file:
Code: ›
<?php
/*
 * Gallery - a web based photo album viewer and editor
 * Copyright (C) 2000-2005 Bharat Mediratta
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * $Id: gpl.txt,v 1.7.2.1 2005/09/12 22:41:29 dmolavi Exp $
 */
?>
<?php
/*
 * Protect against very old versions of 4.0 (like 4.0RC1) which 
 * don't implicitly create a new stdClass() when you use a variable
 * like a class.
 */
if (!isset($gallery)) {
        $gallery = new stdClass();
}
if (!isset($gallery->app)) {
        $gallery->app = new stdClass();
}

/* Version  */
$gallery->app->config_version = '93';

/* Features */
$gallery->app->feature["zip"] = 0; // (missend <i>zipinfo</i> -- dit is optioneel, missend <i>unzip</i> -- dit is optioneel)
$gallery->app->feature["rewrite"] = 1;
$gallery->app->feature["mirror"] = 0; // (missend <i>mirrorSites</i> -- dit is optioneel)

/* Constants */
$gallery->app->galleryTitle = "Fotopagina";
$gallery->app->useIcons = "both";
$gallery->app->skinname = "none";
$gallery->app->uploadMode = "url";
$gallery->app->albumDir = "/home/walrecht/DOMAIN-www.walrecht.net/www/images/gallery/albums/";
$gallery->app->tmpDir = "/home/walrecht/DOMAIN-www.walrecht.net/www/temp/";
$gallery->app->photoAlbumURL = "http://www.walrecht.net/modules/gallery";
$gallery->app->albumDirURL = "http://www.walrecht.net/images/gallery/albums";
$gallery->app->movieThumbnail = "/home/walrecht/DOMAIN-www.walrecht.net/www/modules/gallery/images/movie.thumb.jpg";
// optioneel <i>mirrorSites</i> missend
$gallery->app->graphics = "NetPBM";
$gallery->app->pnmDir = "/usr/local/netpbm/bin";
$gallery->app->pnmtojpeg = "pnmtojpeg";
$gallery->app->pnmcomp = "pnmcomp";
$gallery->app->ImPath = "/usr/local/bin";
$gallery->app->autorotate = "no";
$gallery->app->jpegImageQuality = "90";
// optioneel <i>geeklog_dir</i> missend
$gallery->app->albumTreeDepth = "1000";
$gallery->app->microTree = "no";
$gallery->app->highlight_size = "200";
$gallery->app->showOwners = "no";
$gallery->app->albumsPerPage = "5";
$gallery->app->showSearchEngine = "yes";
$gallery->app->slowPhotoCount = "no";
$gallery->app->gallery_thumb_frame_style = "simple_book";
// optioneel <i>zipinfo</i> missend
// optioneel <i>unzip</i> missend
// optioneel <i>rar</i> missend
// optioneel <i>use_exif</i> missend
// optioneel <i>exiftags</i> missend
$gallery->app->use_jpegtran = "/usr/local/bin/jpegtran";
$gallery->app->default_language = "nl_NL";
$gallery->app->ML_mode = "3";
$gallery->app->available_lang[] = "en_US";
$gallery->app->available_lang[] = "nl_NL";
$gallery->app->show_flags = "yes";
$gallery->app->dateString = "%x";
$gallery->app->dateTimeString = "%c";
$gallery->app->emailOn = "no";
$gallery->app->adminEmail = "info@walrecht.net";
// optioneel <i>senderEmail</i> missend
$gallery->app->emailSubjPrefix = "[Gallery]";
// optioneel <i>emailGreeting</i> missend
$gallery->app->selfReg = "no";
$gallery->app->selfRegCreate = "no";
$gallery->app->multiple_create = "no";
$gallery->app->adminCommentsEmail = "no";
$gallery->app->adminOtherChangesEmail = "no";
// optioneel <i>email_notification</i> missend
$gallery->app->useOtherSMTP = "no";
$gallery->app->smtpHost = "smtp.walrecht.net";
$gallery->app->smtpFromHost = "smtp.walrecht.net";
$gallery->app->smtpPort = "25";
// optioneel <i>smtpUserName</i> missend
// optioneel <i>smtpPassword</i> missend
$gallery->app->gallery_slideshow_type = "ordered";
$gallery->app->gallery_slideshow_length = "0";
$gallery->app->gallery_slideshow_loop = "no";
$gallery->app->slideshowMode = "high";
$gallery->app->comments_enabled = "yes";
$gallery->app->comments_indication = "photos";
$gallery->app->comments_indication_verbose = "no";
$gallery->app->comments_anonymous = "no";
$gallery->app->comments_display_name = "!!FULLNAME!! (!!USERNAME!!)";
$gallery->app->comments_addType = "popup";
$gallery->app->comments_length = "300";
$gallery->app->comments_overview_for_all = "no";
// optioneel <i>watermarkDir</i> missend
$gallery->app->watermarkSizes = "0";
// optioneel <i>stats_foruser</i> missend
$gallery->app->stats_viewsCacheOn = "0";
$gallery->app->stats_viewsCacheExpireSecs = "60";
$gallery->app->stats_commentsCacheOn = "0";
$gallery->app->stats_commentsCacheExpireSecs = "600";
$gallery->app->stats_dateCacheOn = "0";
$gallery->app->stats_dateCacheExpireSecs = "-1";
$gallery->app->stats_votesCacheOn = "0";
$gallery->app->stats_votesCacheExpireSecs = "3600";
$gallery->app->stats_ratingsCacheOn = "0";
$gallery->app->stats_ratingsCacheExpireSecs = "3600";
$gallery->app->stats_cDateCacheOn = "0";
$gallery->app->stats_cDateCacheExpireSecs = "-1";
$gallery->app->debuglevel = "0";
$gallery->app->skipRegisterGlobals = "yes";
$gallery->app->timeLimit = "30";
$gallery->app->blockRandomCache = "86400";
$gallery->app->blockRandomAttempts = "2";
$gallery->app->cacheExif = "no";
$gallery->app->devMode = "no";
$gallery->app->useSyslog = "no";
$gallery->app->use_flock = "yes";
$gallery->app->expectedExecStatus = "0";
$gallery->app->sessionVar = "gallery_session";
$gallery->app->rssEnabled = "yes";
$gallery->app->rssMode = "basic";
// optioneel <i>rssHighlight</i> missend
$gallery->app->rssMaxAlbums = "25";
$gallery->app->rssVisibleOnly = "yes";
$gallery->app->rssDCDate = "no";
$gallery->app->rssBigPhoto = "no";
$gallery->app->rssPhotoTag = "yes";
$gallery->app->userDir = "/home/walrecht/DOMAIN-www.walrecht.net/www/images/gallery/albums//.users";

/* Defaults */
$gallery->app->default["cols"] = "4";
$gallery->app->default["rows"] = "4";
$gallery->app->default["bordercolor"] = "black";
$gallery->app->default["border"] = "1";
$gallery->app->default["font"] = "arial";
$gallery->app->default["thumb_size"] = "150";
$gallery->app->default["resize_size"] = "640";
$gallery->app->default["resize_file_size"] = "0";
$gallery->app->default["max_size"] = "0";
$gallery->app->default["max_file_size"] = "0";
$gallery->app->default["useOriginalFileNames"] = "yes";
$gallery->app->default["add_to_beginning"] = "no";
$gallery->app->default["fit_to_window"] = "no";
$gallery->app->default["use_fullOnly"] = "no";
$gallery->app->default["print_photos"] = "";
$gallery->app->default["mPUSHAccount"] = "gallery";
$gallery->app->default["ecards"] = "no";
$gallery->app->default["returnto"] = "yes";
$gallery->app->default["defaultPerms"] = "everybody";
$gallery->app->default["display_clicks"] = "no";
$gallery->app->default["extra_fields"] = "Description";
$gallery->app->default["showDimensions"] = "no";
$gallery->app->default["item_owner_modify"] = "yes";
$gallery->app->default["item_owner_delete"] = "yes";
$gallery->app->default["item_owner_display"] = "no";
$gallery->app->default["voter_class"] = "Nobody";
$gallery->app->default["poll_type"] = "critique";
$gallery->app->default["poll_scale"] = "3";
$gallery->app->default["poll_hint"] = "Vote for this image";
$gallery->app->default["poll_show_results"] = "no";
$gallery->app->default["poll_num_results"] = "3";
$gallery->app->default["poll_orientation"] = "vertical";
$gallery->app->default["poll_nv_pairs"][0]["name"] = "Excellent";
$gallery->app->default["poll_nv_pairs"][0]["value"] = "5";
$gallery->app->default["poll_nv_pairs"][1]["name"] = "Very Good";
$gallery->app->default["poll_nv_pairs"][1]["value"] = "4";
$gallery->app->default["poll_nv_pairs"][2]["name"] = "Good";
$gallery->app->default["poll_nv_pairs"][2]["value"] = "3";
$gallery->app->default["poll_nv_pairs"][3]["name"] = "Average";
$gallery->app->default["poll_nv_pairs"][3]["value"] = "2";
$gallery->app->default["poll_nv_pairs"][4]["name"] = "Poor";
$gallery->app->default["poll_nv_pairs"][4]["value"] = "1";
$gallery->app->default["poll_nv_pairs"][5]["name"] = "";
$gallery->app->default["poll_nv_pairs"][5]["value"] = "";
$gallery->app->default["poll_nv_pairs"][6]["name"] = "";
$gallery->app->default["poll_nv_pairs"][6]["value"] = "";
$gallery->app->default["poll_nv_pairs"][7]["name"] = "";
$gallery->app->default["poll_nv_pairs"][7]["value"] = "";
$gallery->app->default["poll_nv_pairs"][8]["name"] = "";
$gallery->app->default["poll_nv_pairs"][8]["value"] = "";
$gallery->app->default["slideshow_type"] = "ordered";
$gallery->app->default["slideshow_recursive"] = "no";
$gallery->app->default["slideshow_loop"] = "yes";
$gallery->app->default["slideshow_length"] = "0";
$gallery->app->default["nav_thumbs"] = "no";
$gallery->app->default["nav_thumbs_style"] = "fixed";
$gallery->app->default["nav_thumbs_first_last"] = "no";
$gallery->app->default["nav_thumbs_prev_shown"] = "1";
$gallery->app->default["nav_thumbs_next_shown"] = "1";
$gallery->app->default["nav_thumbs_location"] = "top";
$gallery->app->default["nav_thumbs_size"] = "45";
$gallery->app->default["nav_thumbs_current_bonus"] = "15";
$gallery->app->default["album_frame"] = "simple_book";
$gallery->app->default["thumb_frame"] = "solid";
$gallery->app->default["image_frame"] = "solid";
?>
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Sorry, such file doesn't exist...  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Mon Nov 14, 2005 8:52 am    Post subject: Re: Sorry, such file doesn Reply with quote

Try getting the latest CVS version from here:
http://galleryupdates.jpmullan.com/dail ... vs-b30.zip
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Sandoz

Beginner
Beginner


Joined: Jan 27, 2005
Posts: 2

PostPosted: Tue Nov 15, 2005 5:34 am    Post subject: Re: Sorry, such file doesn Reply with quote

I'm having this same problem. I tried the CVS as dari suggested, but to no avail.

I did a little poking around in modules.php to see if I could possibly figure out what was going on. Here's what I discovered:

The are four instances of the message "Sorry, such file doesn't exist". I simply added a numeric identifier to each string to isolate which instance of the message was being displayed, and it turned out to be the first instance as shown below (formatted for clarity):

Code: ›
if (file_exists("themes/$ThemeSel/modules/$name/" . $file . ".php"))
                {
                $modpath="themes/$ThemeSel/";
                }
            else
                {
                $modpath="";
                }

            if ($view == 0)
                {
                $modpath.="modules/$name/" . $file . ".php";

                if (file_exists($modpath))
                    {
                    include($modpath);
                    }
                else
                    {
                    die("(0) Sorry, such file doesn't exist...");
                    }
                }


Once I determined that, I proceeded to add a check into the die function to display $modpath, $name and $file.

I again attemtped to change the name of the album, and I discovered that $name was set to an empty string.

Again looking at modules.php, I could see that $name was apparently set when modules.php was parsed:

Code: ›
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2005 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

define('MODULE_FILE', true);

require_once("mainfile.php");
$module=1;

$name  =$_GET['name'];
$name  =trim($name);


I decided to add a print statement immediately following the trimming of $name:

Code: ›
print(  "*** name=$name\n" );


Once again, I attempted to change the album name. Now when the popup window appeared for editing the name, it had *** name=Gallery at the top as one would expect. However, upon entering a new name and clicking the Save button, the error message was generated as before, but with $name set to an empty string, and the error message generated as previously described.

With Firefox, I opened up Page Info for the popup window and the referring URL to that page was:

http://www.hirb.net/modules.php?set_albumName=test&field=title&gallery_popup=true&op=modload&name=Gallery&file=index&include=edit_field.php

showing that $name was in fact set to Gallery (...&name=Gallery&...).

I will also mention for the sake of completeness that the URL for the error page itself was:

http://www.hirb.net/modules.php

I guess I don't grok PHP well enough to understand how that could be happening.

In any case, I too would be most appreciative of some help in finding a solution to this problem.
Back to top
Offline View user's profile Send private message
Cheryan

Beginner
Beginner


Joined: Oct 13, 2004
Posts: 6

PostPosted: Tue Nov 15, 2005 7:00 am    Post subject: Re: Sorry, such file doesn Reply with quote

I'll download the latest version as soon as have some spare time.. let you know how it went.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Tue Nov 15, 2005 8:14 am    Post subject: Re: Sorry, such file doesn Reply with quote

a good workaround would be to access your gallery in standalone mode (ie www.yoursite.com/modules/gallery ) and then add photos that way.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Cheryan

Beginner
Beginner


Joined: Oct 13, 2004
Posts: 6

PostPosted: Tue Nov 15, 2005 8:35 am    Post subject: Re: Sorry, such file doesn Reply with quote

Yup that's the work arround, but full control within phpnuke would be nice Wink
We 'll use the work arround for now, we 'll create a completely new site pretty soon. Perhaps that will solve some of our problems.
Back to top
Offline View user's profile Send private message
Sandoz

Beginner
Beginner


Joined: Jan 27, 2005
Posts: 2

PostPosted: Tue Nov 15, 2005 8:58 am    Post subject: Re: Sorry, such file doesn Reply with quote

If anyone's interested, here's how I fixed the problem. Inside modules.php, I added this line:

if( $name == '' ) $name = $_REQUEST[ 'name' ]; // note: those are TWO single quotation marks in the comparison, not one double quote

See the code block for details.


Code: ›
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
$name  =$_GET['name'];
/* Copyright (c) 2005 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

define('MODULE_FILE', true);

require_once("mainfile.php");
$module=1;

$name  =$_GET['name'];

if( $name == '' ) $name = $_REQUEST[ 'name' ]; // <== add this line

$name  =trim($name);
print( "*** name=$name\n" );
Back to top
Offline View user's profile Send private message
PhasmataJ

Beginner
Beginner


Joined: Oct 27, 2005
Posts: 3
Location: USA, Florida

PostPosted: Wed Dec 14, 2005 4:34 am    Post subject: Re: Sorry, such file doesn't exist... Reply with quote

Hey,

It doesn't look like anyone thanked you for the help Sandoz. But I'm going to do it right now:

THANK YOU SANDOZ. YOU ROCK!

This one post has saved me 'God Only Knows' how many days and months of forum digging!

Peace,
PhasmataJ
_________________
When in doubt, Check it OUT!
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Jools

Beginner
Beginner


Joined: Jul 02, 2005
Posts: 1

PostPosted: Tue Dec 20, 2005 11:26 am    Post subject: Re: Sorry, such file doesn't exist... Reply with quote

Thanks A LOT for this Very Happy

Ive been pulling my hair out trying to fix this problem, and that one line appears to have fixed the problem I was having

Strange thing is im not sure what broke this in the first place!
Back to top
Offline View user's profile Send private message
VIDGuide

Beginner
Beginner


Joined: Sep 03, 2005
Posts: 7

PostPosted: Sun Apr 23, 2006 1:18 am    Post subject: Re: Sorry, such file doesn't exist... Reply with quote

I will also like to post a VERY big thank you, solution works perfectly. Weird thing is, I just updated from 1.5.1 to 1.5.3, and suddenly this problem appeared.

put this one line in, and problem solved .. Not the cleanest coding hack, but hell, it works Smile

I'm still curious about exactly what is borked, but for now, don't have time to find out Smile
Back to top
Offline View user's profile Send private message
sg_57

Beginner
Beginner


Joined: Sep 08, 2003
Posts: 1

PostPosted: Fri May 12, 2006 4:57 pm    Post subject: Re: Sorry, such file doesn Reply with quote

Sandoz wrote: › If anyone's interested, here's how I fixed the problem. Inside modules.php, I added this line:

if( $name == '' ) $name = $_REQUEST[ 'name' ]; // note: those are TWO single quotation marks in the comparison, not one double quote


A real big thank you to Sandoz for this.

Had the problem for months, and no time to look for a fix.
Found this, bam, 5 minutes later I can start uploading again!!

Now, would it not be great if I could understand why the problem suddenly appeared? Maybe when I upgraded to Nuke 7.9?? Rolling Eyes

SG
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Sat May 13, 2006 8:29 am    Post subject: Re: Sorry, such file doesn Reply with quote

methinks it's how gallery 2 posts it's urls. a GET is different from the REQUEST.
from the php docs:
Quote: ›
$_GET
Variables provided to the script via URL query string.

$_REQUEST
Variables provided to the script via the GET, POST, and COOKIE input mechanisms, and which therefore cannot be trusted.

_________________
Back to top
Offline View user's profile Send private message Visit poster's website
BDPorch

Beginner
Beginner


Joined: Sep 15, 2006
Posts: 1

PostPosted: Wed Sep 20, 2006 5:58 am    Post subject: Re: Sorry, such file doesn't exist... Reply with quote

OMG THANK YOU so much for this! I have been digging and digging to be able to FULLY integrate Gallery 1.5.3 into my nuke site and this little snippet of code was the answer!
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 1 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia