Page 1 of 2

Uploads problem [ SOLVED ]

Posted: Thu Oct 15, 2009 11:56 am
by naturelab
Hello :- I have just installed "uploads" and am having some problems with it. Any help greatly appreciated.

It seems to have installed correctly and I can ADD new categories correctly.
However, when I try to upload a new file through the interface, after pressing "submit", I get...

*************************
http://www.mydomain/admin/moduleinterface.php

Not Found

The requested URL was not found on this server.

*************************

The same thing happens when I try to modify an existing category, then press submit.

I have uninstalled and re-installed, but the same thing happens.

Could it something to do with pretty urls or file permissions ?

My info :-

----------------------------------------------

Cms Version: 1.6.4

Installed Modules:

   * CMSMailer: 1.73.14
   * FileManager: 1.0.1
   * MenuManager: 1.6.1
   * ModuleManager: 1.3.1
   * News: 2.10.2
   * nuSOAP: 1.0.1
   * Printing: 1.0.2
   * Search: 1.6.1
   * ThemeManager: 1.1.1
   * TinyMCE: 2.5.1
   * Uploads: 1.9.1
   * CGSimpleSmarty: 1.4.3
   * CGExtensions: 1.17.2
   * FormBuilder: 0.5.12
   * Captcha: 0.4


Config Information:

   * php_memory_limit:
   * process_whole_template: false
   * max_upload_size: 10000000
   * default_upload_permission: 664
   * assume_mod_rewrite: true
   * page_extension: .html
   * internal_pretty_urls: false
   * use_hierarchy: false


Php Information:

   * phpversion: 5.2.8
   * md5_function: On (True)
   * gd_version: 2
   * tempnam_function: On (True)
   * magic_quotes_runtime: Off (False)
   * memory_limit: 64M
   * max_execution_time: 30
   * safe_mode: Off (False)
   * session_save_path: /tmp (1777)


Server Information:

   * Server Api: cgi
   * Server Db Type: MySQL (mysql)
   * Server Db Version: 5.0.81


----------------------------------------------

Re: Uploads problem

Posted: Thu Oct 15, 2009 1:24 pm
by jmcgin51
please update to the latest version of Uploads and see if the issue continues

Re: Uploads problem

Posted: Thu Oct 15, 2009 3:59 pm
by naturelab
Hi :-

Thanks for the suggestion. I have upgraded to the latest versions of:-
  • Uploads module
  • CGextensions  module
  • CMSMS core
Unfortunately, the problem still exists.

The module functions, but anything that requires the submit button, results in the above error. Very frustrating.
I can maunaully FTP a file ( and it will show up ), but it won't let me use the upload interface correctly.
Does anyone know of any other module conflicts ?

Latest version info below :-

----------------------------------------------

Cms Version: 1.6.6

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 1.0.1
    * MenuManager: 1.6.2
    * ModuleManager: 1.3.1
    * News: 2.10.3
    * nuSOAP: 1.0.1
    * Printing: 1.0.4
    * Search: 1.6.1
    * ThemeManager: 1.1.1
    * TinyMCE: 2.5.5
    * Uploads: 1.10.3
    * CGSimpleSmarty: 1.4.3
    * CGExtensions: 1.17.4
    * FormBuilder: 0.5.12
    * Captcha: 0.4


Config Information:

    * php_memory_limit:
    * process_whole_template: false
    * max_upload_size: 10000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension: .html
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.8
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 64M
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: /tmp (1777)
    * session.use_cookies: On (True)


Server Information:

    * Server Api: cgi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.81


----------------------------------------------

Re: Uploads problem

Posted: Thu Oct 15, 2009 4:09 pm
by naturelab
If it helps shed any light on the matter, I can't even use the SUBMIT button on the "Front End File Management (Uploads)" preferences panel !

Re: Uploads problem

Posted: Thu Oct 15, 2009 4:53 pm
by naturelab
In addition, I have done a completely new install of CMSMS.

The only new modules I have added are :-

* Uploads: 1.10.3
* CGExtensions: 1.17.4

I get a similar error when hitting submit :-

Code: Select all

Not Acceptable
An appropriate representation of the requested resource /new/admin/moduleinterface.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Does this point to a server issue ?
I can upload files using the standard default file manager ok.

I have run out of ideas now.

Re: Uploads problem

Posted: Thu Oct 15, 2009 4:56 pm
by calguy1000
if the admin/moduleinterface.php file exists, and has the same ownership and permissions as the other .php files then yes, it points to a server issue I think.

More than likely your .htaccess file, or mod_security is getting in the way.

Try removing/renaming your .htaccess file temporarily.

Re: Uploads problem

Posted: Fri Oct 16, 2009 9:44 am
by naturelab
Thanks for looking at this calguy - really appreciate it.

OK.

With the .htaccess file disabled/renamed and pretty urls set to "none" in the config file, I get this message :-

Code: Select all

Not Acceptable
An appropriate representation of the requested resource /new/admin/moduleinterface.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
With the .htaccess file  and pretty urls in operation, I get this message :-

Code: Select all

Not Found

The requested URL was not found on this server.
The file admin/moduleinterface.php does exist and it's permisions are set to 644 ( along with all the other files in the admin folder ). The admin folder itself has permissions of 755.

I have tried changing the permissions of admin/moduleinterface.php to 777, 755 etc... but I am at the limit of my knowledge here, so I don't really know what I'm doing. Needless to say, I have come to a 'dead-end' again.

As I mentioned previously, I did a complete clean install of CMSMS ( what I neglected to say, is that it was on a totally different hosting account ( on the same shared server ) but without any other third party modules OR .htaccess files ) and I had the same problem.

I can show you my core PHP Configuration ( from

Code: Select all

<?php
phpinfo( );
?>
it is quite a long document, but to be honest, I am not sure which bit specifically, I need to look at to determine the problem.

I can actually speak to the guys who run the hosting company ( they are local to me ) but I am not sure where to start.

Any help, again, greatly apreciated.

All the best.

Re: Uploads problem

Posted: Sat Oct 17, 2009 1:14 pm
by Stom
I'm also getting a similar issue when using the Products module and trying to add a hierarchy. It had been working ok but then, without making any changes, I'm getting "error - Array" when trying to add a new one. I have the following moudles installed:

Code: Select all

CMS Version
1.6.6

Installed Modules

CMSMailer
1.73.14

FileManager
1.0.1

MenuManager
1.6.2

ModuleManager
1.3.1

News
2.10.3

nuSOAP
1.0.1

Printing
1.0.4

Search
1.6.1

ThemeManager
1.1.1

TinyMCE
2.5.5

CGExtensions
1.17.4

CGPaymentGatewayBase
1.0.3

CGSimpleSmarty
1.4.3

Products
2.4.3

Cart
1.4.2

FrontEndUsers
1.6.10

Orders
1.6.1

PaypalGateway
2.1.2

FormBuilder
0.5.12

Re: Uploads problem

Posted: Mon Oct 19, 2009 10:43 am
by naturelab
SOLVED ( It think )

I have added

Code: Select all

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
to my .htaccess file - and it seems to have done the job !

Stom - give it a go and see if it resolves your problem.

Thanks for all your suggestions.

Re: Uploads problem [ SOLVED ]

Posted: Thu Jan 20, 2011 9:42 pm
by arstach
I have pretty the same problem.. but it appears when im trying to apply some changes in my template.. after clicking "submit" button it shows:

Code: Select all

Not Acceptable
An appropriate representation of the requested resource /cms/admin/edittemplate.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Of course edittemplate.php file exists..

Adding

Code: Select all

<IfModule mod_security.c>
   SecFilterEngine Off
   SecFilterScanPOST Off
</IfModule>
to .htaccess did nothing..

I will be grateful for any suggestions.

Re: Uploads problem [ SOLVED ]

Posted: Mon Jul 11, 2011 11:19 am
by osn
I have the same problem with the moduleinterface.php file not being found when I try to copy and save a new template for Gallery.

Anyone having a clue? the .htaccess solution dosn't make any diffrence for me.

arstach wrote:I have pretty the same problem.. but it appears when im trying to apply some changes in my template.. after clicking "submit" button it shows:

Code: Select all

Not Acceptable
An appropriate representation of the requested resource /cms/admin/edittemplate.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Of course edittemplate.php file exists..

Adding

Code: Select all

<IfModule mod_security.c>
   SecFilterEngine Off
   SecFilterScanPOST Off
</IfModule>
to .htaccess did nothing..

I will be grateful for any suggestions.

Re: Uploads problem [ SOLVED ]

Posted: Tue Jul 19, 2011 12:21 am
by curlypinky
Osn,
Your server may not be paying attention to the htaccess for mod_security. I had this problem today and contacted my server admin on chat. While I had the tech right there I triggered the problem form (in this case creating a new or saving a template within cgfeedback) and he was able to see the issue and implement the fix - in this case:
add a whitelist for the uri /admin/moduleinterface.php and change the PCRE Limits
Hope this is helpful,
Alane

Re: Uploads problem [ SOLVED ]

Posted: Wed Jul 20, 2011 7:08 am
by osn
Thank you Alane.
It suddenly just started to work. I have no idea why or how it can start work by itself and it kind of worries me. I guess I will notice if the problem comes back when I move the site to the production site and then I will test your solution :)

Re: Uploads problem [ SOLVED ]

Posted: Tue Aug 23, 2011 9:27 am
by osn
curlypinky wrote:Osn,
Your server may not be paying attention to the htaccess for mod_security. I had this problem today and contacted my server admin on chat. While I had the tech right there I triggered the problem form (in this case creating a new or saving a template within cgfeedback) and he was able to see the issue and implement the fix - in this case:
add a whitelist for the uri /admin/moduleinterface.php and change the PCRE Limits
Hope this is helpful,
Alane
I now have the same kind of issue with formbuilder and in 2 diffrent sites hosted by two diffrent companys. How do I add a whitelist?

Re: Uploads problem [ SOLVED ]

Posted: Tue Aug 23, 2011 10:58 am
by osn
I have been looking around a bit and it seems like my Ubuntu 8-04 / Plesk 8.6 installation that I rent from my ISP dosn't have any whitelist.conf that I can find.

I might be wrong, but I have no idea how to solve it otherwise.

At the other installation I have the same error on I don't have any shell access. Guess I can't whitelist it then?

Anyone who have a clue how to solve this?
Seems like this is/was a very common problem in WordPress.