File Manager Add-on Support Product Page

Answered

File uploading error

Asked 23 Sep 2011 03:37:31
1
has this question
23 Sep 2011 03:37:31 Brian Wheeler posted:
Hi there
Not sure why someone deleted my last post as it's still not resolved.

I still cannot upload files using the File Manager add-on (with php upload). I get: 403 Forbidden. You don't have permission to access /ScriptLibrary/dmxEditor/dialogs/upload.php on this server.

I managed to speak to support person Teodor and he suggested I move the site to the root directory and reapply the scripts which I did, but to no avail.

Can someone help please on where to go next?

Replies

Replied 23 Sep 2011 12:56:57
23 Sep 2011 12:56:57 manuel pinto replied:
I have the same problem. No error notification, but still can't upload files. Hope a solution soon.
Replied 13 Oct 2011 01:42:32
13 Oct 2011 01:42:32 Brian Wheeler replied:
Still not working!
Anybody have any help or suggestions?
Or does anyone from DMX Zone read these?
Replied 13 Oct 2011 09:43:00
13 Oct 2011 09:43:00 Teodor Kuduschiev replied:
Please check if you have a security mod installed on your server. Please also check your server error log with your hosting provider/server administrator. This is not a bug in the extension.
Replied 25 Oct 2011 08:26:38
25 Oct 2011 08:26:38 Brian Wheeler replied:
Thanks Teodor
I have asked the hosting company about the security mod and they changed something and I now get a slightly different error:

Fatal error: require_once() [function.require]: Failed opening required '/ScriptLibrary/incPureUpload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/coconuts/public_html/ScriptLibrary/dmxEditor/dialogs/upload.php on line 9

Does this help with tracking down the problem?



Edited by - Brian Wheeler on 25 Oct 2011  08:27:56
Replied 25 Oct 2011 16:07:15
25 Oct 2011 16:07:15 Teodor Kuduschiev replied:
Dear Brian,

This is all caused by some restrictions on your server. The product is tested and fully working. Please contact the hosting provider and ask them to check the logs and locate which of the server configuration settings is causing you this problem.
Replied 31 Oct 2011 04:17:43
31 Oct 2011 04:17:43 Brian Wheeler replied:
Thanks Theodar but the hosting company says that the hosting is standard and the problem is with the script - so I guess I get the usual 'blame from both parties' but no-one taking responsibility and finding a solution - especially when someone else has the problem as well.

I will find an alternative solution so how do I go about getting a refund please as the scripts do not work for me?
Replied 03 Nov 2011 11:56:37
03 Nov 2011 11:56:37 Miroslav Zografski replied:
Hello Brian,
The errors are saying that the file:
SiteRoot/ScriptLibrary/incPureUpload.php
cannot be opened with the require_once PHP function. Check for the existing of that file. And ask you hosting company for any restrictions on parent paths.
Replied 05 Mar 2012 23:55:28
05 Mar 2012 23:55:28 phil vouers replied:
I had a similar problem with php upload when I was behind a protected directory. Drove me nuts but I just moved all scripting into the same protected directory and all was well. This didn't work though with php multi file upload.. there I had to place multi file upload outside the protected folder. Don't know if that will help but it did solve my problem. I woulod suggest setting up a php page just for file up load and test that ( not with html 3 but by itself ) if that works then try them together to at least eliminate part of the add on.
Replied 05 Jun 2013 20:59:14
05 Jun 2013 20:59:14 Nikolaos Beligiannis replied:
I am getting this error when trying to upload a file through HTML Editor3

The following error(s) occured:
•Forbidden

You don't have permission to access /ScriptLibrary/dmxEditor/dialogs/upload.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at ....com Port 80

Using HTML Editor3 in an administrator area ('pages that require login').


Thank you
Replied 26 Feb 2014 20:50:29
26 Feb 2014 20:50:29 Bernd Schmitt replied:
This issue is known for a long time. It's definitely not a server issue, but a bug in the upload.php.

I stated it at least a year ago and now I've updatet the PHP uploader to v.3 and it is still not resolved. It's very simple:

upload.php -> row 9: a wrong path to /ScriptLibrary/incPureUpload.php.
Require or include in PHP requires a relativ path OR a absolute server path, this is well known by every PHP developer
The path "/ScriptLibrary/incPureUpload.php" refers to the server root instead of the website root. Of course the script has in most cases no access to the server root.

Simply change the line 9 of the uplad.php
require_once('/ScriptLibrary/incPureUpload.php');
to
require_once($_SERVER['DOCUMENT_ROOT'].'/ScriptLibrary/incPureUpload.php');

and it works like a charm.

It's a shame that such a banal bug after years is still not resolved, although I already had pointed out and it's really simple to fix it.

Have a great night
Bernd
Replied 26 Feb 2014 21:27:39
26 Feb 2014 21:27:39 phil vouers replied:
thanks BERND,
It's a shame that we have to fix extensions we pay for.
Replied 26 Feb 2014 21:53:36
26 Feb 2014 21:53:36 Bernd Schmitt replied:
Sorry, I have to correct me a little bit.

I'm confused.
Had a look at the in the Dreamweaver configuration files (C:\Users\Username\AppData\Roaming\Adobe\Dreamweaver CC\de_DE\Configuration\Shared\DMXzone\Advanced HTML Editor 3\PHP\upload.php) - the path is right here (relative: '../../../ScriptLibrary/incPureUpload.php'), but in the website installed file the path is wrong. Both version are 3.03 but different row 9. I wonder where the file with the wrong path comes from. A hour ago I've deleted the folder /ScriptLibrary completely and installed the HTML Editor again in the form field, the same issue as before.

Can it be that the installation routine changed something in the file?

Sincerely
Bernd
Replied 26 Feb 2014 22:07:31
26 Feb 2014 22:07:31 Teodor Kuduschiev replied:
Hello,
the issue is caused when your site uses paths relative to root. Please change this to Relative to Document in DW site config settings and the issue will be gone.
We will improve the paths relative to root compatibility in the next update.
Replied 26 Feb 2014 22:24:06
26 Feb 2014 22:24:06 Bernd Schmitt replied:
Thanks for the quick reply. Indeed I'm using relative paths to root. This is necessary because the pages and pathes are added dynamical using a CMS by the customers.

It would be great to get a update to be able using both path types without tweeking the scripts.

Reply to this topic