Uploads problem [ SOLVED ]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Uploads problem [ SOLVED ]

Post 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


----------------------------------------------
Last edited by naturelab on Mon Oct 19, 2009 10:44 am, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Uploads problem

Post by jmcgin51 »

please update to the latest version of Uploads and see if the issue continues
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: Uploads problem

Post 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


----------------------------------------------
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: Uploads problem

Post 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 !
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: Uploads problem

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Uploads problem

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: Uploads problem

Post 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.
Stom
Forum Members
Forum Members
Posts: 82
Joined: Tue Jul 31, 2007 1:41 am

Re: Uploads problem

Post 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
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: Uploads problem

Post 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.
arstach
Forum Members
Forum Members
Posts: 27
Joined: Tue Jun 01, 2010 5:21 pm

Re: Uploads problem [ SOLVED ]

Post 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.
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm
Location: Sweden

Re: Uploads problem [ SOLVED ]

Post 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.
curlypinky
Forum Members
Forum Members
Posts: 109
Joined: Thu Sep 04, 2008 3:49 am
Location: Hawaii

Re: Uploads problem [ SOLVED ]

Post 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
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm
Location: Sweden

Re: Uploads problem [ SOLVED ]

Post 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 :)
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm
Location: Sweden

Re: Uploads problem [ SOLVED ]

Post 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?
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm
Location: Sweden

Re: Uploads problem [ SOLVED ]

Post 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.
Post Reply

Return to “Modules/Add-Ons”