Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Frontend upload doesn't work
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1530
Page 1 of 2

Author:  pille [ 12. May 2008, 16:50 ]
Post subject:  Frontend upload doesn't work

Hi Michael,

I created a new user who is allowed for frontend upload. After login (frontend) the twgflash uploader appears, I can see the files in the folder but if I want to add a picture, the status turns to "not allowed File-Extension: jpg

My log shows the following:

Code:
/filefunctions.inc.php, line 1550: opendir(album/buttons/smilies) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
/filefunctions.inc.php, line 1552: readdir(): supplied argument is not a valid Directory resource
/filefunctions.inc.php, line 1560: closedir(): supplied argument is not a valid Directory resource
/readxml.inc.php, line 209: Undefined index:  NAME


See ya
Martin

Author:  TinyWebGallery [ 12. May 2008, 17:55 ]
Post subject: 

this is right - I removed the default extensions for TFU in one of the last versions ;).

Add added this to
$admin_user_allowed_file_extensions

but I missed one build and I think you have this one.

add the extensions to

$admin_user_allowed_file_extensions

and then it works again.

The log entry is not related to this. Seems the smilies directory is not uploaded.

/Michael

Author:  pille [ 13. May 2008, 15:38 ]
Post subject: 

I had 1.7.2. so I updated to 1.7.3. Seems, that everything is working now.

BTW: 1.7.3 zip-version: there is a twg.lic.php file inside the zip-file. I nearly overwrote my own license-file. Perhaps you should mention in faq to save a personal twg.lic.php file.

see ya
Martin

Author:  TinyWebGallery [ 13. May 2008, 15:57 ]
Post subject: 

the twg.licx.php should not be there. It had an extra x therefore nothing would have happened.

I have removed it - thanks for the hint.

/Michael

Author:  pille [ 26. May 2008, 10:10 ]
Post subject: 

Hi Michael,
as I wrote, I updated to your latest version and thought, the errors were gone... my fault :(

Code:
/album/inc/filefunctions.inc.php, line 1544: opendir(album/buttons/smilies) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
/album/inc/filefunctions.inc.php, line 1546: readdir(): supplied argument is not a valid Directory resource
/album/inc/filefunctions.inc.php, line 1554: closedir(): supplied argument is not a valid Directory resource
/album/inc/readxml.inc.php, line 213: Undefined index:  NAME


The smilies-directory is at the right place. E.g.
#removed_broken_linkhtml/album/but ... ies/a(.gif

See ya
Martin

Author:  TinyWebGallery [ 26. May 2008, 10:25 ]
Post subject: 

are you using php include?

/Michael

Author:  pille [ 26. May 2008, 11:51 ]
Post subject: 

yes. Part of my config.php

$iframe_include=false;
$iframe_height_ie='100%';
$php_include=true;
$install_dir = 'album/';
/* additional parameters for php_include can be found in config_internal.php - section php_include */
$basedir = 'pictures';
$cachedir = 'cache';
$counterdir = 'counter';
$xmldir = 'xml';

Author:  TinyWebGallery [ 26. May 2008, 12:11 ]
Post subject: 

o.k. i'll check - are smilies shown in the comments iframe?

/Michael

Author:  pille [ 26. May 2008, 12:49 ]
Post subject: 

Wow Michael - that's fast.

Yes, smilies are shown.

Author:  TinyWebGallery [ 26. May 2008, 12:50 ]
Post subject: 

and if you use them are they shown too?

/Michael

Author:  pille [ 26. May 2008, 15:43 ]
Post subject: 

Sorry, I had an appointment.

We are talking about the smilies in the comments-section?

Smilies are shown, if I enter a comment
If I click on a smilie the tag is inserted in comments-field
Smilies are shown in comments, if I view a picture

#removed_broken_link ... 0=comments

Seems, that everything works as it should - but I get the error-messages

Tia
Martin

Author:  TinyWebGallery [ 26. May 2008, 15:49 ]
Post subject: 

i play around a little bit - i have it on my todo list ;).

/Michael

Author:  pille [ 28. May 2008, 10:22 ]
Post subject: 

I investigated a little deeper: my access.log says

GET /html/buttons/smilies/8).gif HTTP/1.1 > 404

it should be

GET /html/album/buttons/smilies/8).gif HTTP/1.1

album is the folder with the twg-script - remember: everything works fine except for the smilies

Author:  TinyWebGallery [ 28. May 2008, 18:56 ]
Post subject: 

i check - i only have to find the place where the folder is missing :)

/Michael

Author:  pille [ 2. Jun 2008, 08:04 ]
Post subject: 

Hi Michael,

thanks for sending the new ajaxserver.inc.php. I uploaded, deleted the session cache (and the browser cache) but the error remains

/album/inc/filefunctions.inc.php, line 1544: opendir(album/buttons/smilies) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
/album/inc/filefunctions.inc.php, line 1546: readdir(): supplied argument is not a valid Directory resource
/album/inc/filefunctions.inc.php, line 1554: closedir(): supplied argument is not a valid Directory resource

This has a very low priority - the gallery is working.

Tia
Martin

Page 1 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/