Please Help! Can't browse to directories below uploads
-
- Forum Members
- Posts: 29
- Joined: Mon Sep 20, 2010 8:36 pm
Please Help! Can't browse to directories below uploads
Please help! My church website needs to share sermons and other data on our website every week. We have been unable to upload any files for over a week now.
Browsing to directories below uploads simply displays the same list instead of the contents of the clicked directory. This happens in both File Manager when I want to upload new files, and in TinyMCE when I want to insert an image or insert a link to a file that is in a directory below uploads.
This was all working fine for a couple years. This File Manager problem first occurred last week when I upgraded from CMSMS 1.9.4.2 to CMSMS 1.10.3, and is still there now that I upgraded to CMSMS 1.11.7. Any help would be greatly appreciated!
I am logged in as administrator, so I thought I should have permission.
I granted all users permission to Advanced Usage of the File Manager Module.
I set all directories permissions to 777.
There are no php errors.
There are no ! or X on the System Info page.
Browsing down to other directories works fine on Image Manager, but not with File Manager or TinyMCE browsing.
If I set the File Manager option to Enable Advanced Mode, File Manager then defaults to the root directory, but then I can't even open the uploads directory by clicking on it. Clicking on uploads simply displays the contents of the root directory again.
Here is my current system information:
----------------------------------------------
Cms Version: 1.11.7
Installed Modules:
CMSMailer: 5.2.1
FileManager: 1.4.3
MenuManager: 1.8.5
ModuleManager: 1.5.5
News: 2.12.12
Printing: 1.1.2
Search: 1.7.8
ThemeManager: 1.1.8
TinyMCE: 2.9.12
FormBuilder: 0.7.3
Captcha: 0.4.6
Gallery: 1.4.4
CGExtensions: 1.35
FrontEndUsers: 1.21.16
CustomContent: 1.9
MysqlDump: 1.2.4
CMSPrinting: 1.0.4
MicroTiny: 1.2.5
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 20000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.3.13
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 32M
max_execution_time: 120
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 20M
upload_max_filesize: 20M
session_save_path: /home/users/web/b1559/pow.zumbro/phpsessions (0755)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.91
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
----------------------------------------------
Browsing to directories below uploads simply displays the same list instead of the contents of the clicked directory. This happens in both File Manager when I want to upload new files, and in TinyMCE when I want to insert an image or insert a link to a file that is in a directory below uploads.
This was all working fine for a couple years. This File Manager problem first occurred last week when I upgraded from CMSMS 1.9.4.2 to CMSMS 1.10.3, and is still there now that I upgraded to CMSMS 1.11.7. Any help would be greatly appreciated!
I am logged in as administrator, so I thought I should have permission.
I granted all users permission to Advanced Usage of the File Manager Module.
I set all directories permissions to 777.
There are no php errors.
There are no ! or X on the System Info page.
Browsing down to other directories works fine on Image Manager, but not with File Manager or TinyMCE browsing.
If I set the File Manager option to Enable Advanced Mode, File Manager then defaults to the root directory, but then I can't even open the uploads directory by clicking on it. Clicking on uploads simply displays the contents of the root directory again.
Here is my current system information:
----------------------------------------------
Cms Version: 1.11.7
Installed Modules:
CMSMailer: 5.2.1
FileManager: 1.4.3
MenuManager: 1.8.5
ModuleManager: 1.5.5
News: 2.12.12
Printing: 1.1.2
Search: 1.7.8
ThemeManager: 1.1.8
TinyMCE: 2.9.12
FormBuilder: 0.7.3
Captcha: 0.4.6
Gallery: 1.4.4
CGExtensions: 1.35
FrontEndUsers: 1.21.16
CustomContent: 1.9
MysqlDump: 1.2.4
CMSPrinting: 1.0.4
MicroTiny: 1.2.5
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 20000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.3.13
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 32M
max_execution_time: 120
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 20M
upload_max_filesize: 20M
session_save_path: /home/users/web/b1559/pow.zumbro/phpsessions (0755)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.91
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
----------------------------------------------
Re: Please Help! Can't browse to directories below uploads
Check your config.php to make sure the paths are correct...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Please Help! Can't browse to directories below uploads
a: You may need to specify an 'absolute' path in the config.php
(make sure that the path you specify is not a symbolic link)
b: talk to your hosts about their mod_rewrite logs and see if there is a rule there that is conflicting.
(make sure that the path you specify is not a symbolic link)
b: talk to your hosts about their mod_rewrite logs and see if there is a rule there that is conflicting.
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.
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.
-
- Forum Members
- Posts: 29
- Joined: Mon Sep 20, 2010 8:36 pm
Re: Please Help! Can't browse to directories below uploads
Dr.CSS, I believe they are correct, though I don't know much about php or what is needed.
calguy1000, what do you mean by 'absolute path'?
The root_url is the correct url to my website:
I keep wondering if it is a permissions thing. My config.php file has:
calguy1000, thanks, I'll check with my host about a possible conflicting rule in mod_rewrite logs.
calguy1000, what do you mean by 'absolute path'?
The root_url is the correct url to my website:
and the root_path matches what was stated on my web host's PHP documentation for the document root for my website:$config['root_url'] = 'http://www.zumbrolutheran.org';
I installed CMSMS in my root, so I believe the uploads_path:$config['root_path'] = '/home/users/web/b1559/pow.zumbro/htdocs';
and uploads_url:$config['uploads_path'] = '/home/users/web/b1559/pow.zumbro/htdocs/uploads';
are correct.$config['uploads_url'] = 'http://www.zumbrolutheran.org/uploads';
I keep wondering if it is a permissions thing. My config.php file has:
Is that what it should be?$config['default_upload_permission'] = '664';
calguy1000, thanks, I'll check with my host about a possible conflicting rule in mod_rewrite logs.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Please Help! Can't browse to directories below uploads
the config.php in 1.11.x should not need (in most cases) the root path, or uploads path, or uploads_url entries. they will be calculated anyways.
to test if it's a symbolic link issue you could try:
to test if it's a symbolic link issue you could try:
Code: Select all
$config['uploads_path'] = realpath(__DIR__.'/uploads');
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.
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.
-
- Forum Members
- Posts: 29
- Joined: Mon Sep 20, 2010 8:36 pm
Re: Please Help! Can't browse to directories below uploads
calgy1000, I just tried the uploads_path that you suggested and got the same results: won't open the clicked directory. When I make a change like that to config.php is there anything else I need to do to make the change go into effect? I logged out of CMSMS admin and logged back in. Do I also need to close my browser window, or run anything else?
Other possible clues as to what might be going on are if I try to create a new directory in uploads in File Manager, I get this message:
Other possible clues as to what might be going on are if I try to create a new directory in uploads in File Manager, I get this message:
Also, since you are mentioning paths, do they have anything to do with the session save path in the php.ini file? That was one of the major differences when I switched from PHP 5.2 to PHP 5.2.3. In PHP 5.2 it was:You are not allowed to modify files outside the uploads-dir! (That requires the Advanced File Management permission)
in PHP 5.3 it is:session.save_path = /home/users/web/b1559/pow.zumbro/htdocs/cgi-bin/tmp
So in PHP 5.3 the save path is no longer in the root directory. I can change the php.ini file for PHP 5.3 if that would help.session.save_path = "/home/users/web/b1559/pow.zumbro/phpsessions"
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Please Help! Can't browse to directories below uploads
yes, I think your problem is because the root_url and uploads url you are using
are actually symbolic links to another path.
Try this:
a: comment out all 'path' config variables.
i.e: root_path, uploads_path etc.
b: set root_path to $config['root_path'] = realpath(__DIR__);
are actually symbolic links to another path.
Try this:
a: comment out all 'path' config variables.
i.e: root_path, uploads_path etc.
b: set root_path to $config['root_path'] = realpath(__DIR__);
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.
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.
-
- Forum Members
- Posts: 29
- Joined: Mon Sep 20, 2010 8:36 pm
Re: Please Help! Can't browse to directories below uploads
That fixed the File Manager problems!! Thanks!
I still am not able to browse down to another directory when I try to insert an image or a link in page content using TinyMCE. Does that use a different variable in config.php?
I still am not able to browse down to another directory when I try to insert an image or a link in page content using TinyMCE. Does that use a different variable in config.php?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Please Help! Can't browse to directories below uploads
TinyMCE is different code... I would have to go through that, but since I don't use TinyMCE as a general rule I am not inclined to do so.... does MicroTiny work?
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.
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.
-
- Forum Members
- Posts: 29
- Joined: Mon Sep 20, 2010 8:36 pm
Re: Please Help! Can't browse to directories below uploads
Yes, I just checked, and Micro Tiny MCE works for browsing into directories to pick the file.
I could suggest that all my users switch to using Micro Tiny MCE so they can link to files correctly. But if possible, I would prefer to get Tiny MCE to work again - that's what all my users are used to using and there are MANY more buttons on the toolbar in Tiny MCE, such as working with tables.
Should I post the question in the Modules/Add-Ons forum?
I could suggest that all my users switch to using Micro Tiny MCE so they can link to files correctly. But if possible, I would prefer to get Tiny MCE to work again - that's what all my users are used to using and there are MANY more buttons on the toolbar in Tiny MCE, such as working with tables.
Should I post the question in the Modules/Add-Ons forum?