Page 1 of 1

File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 10:28 am
by chillifish
I'm trying to link to a pdf in the uploads folder. The link browser in micro tiny won't go any further up than the images folder, though the image browser does. This seems the wrong way round. ???

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 10:34 am
by Jo Morg
In CMSMS 1.11.11 it works for me. Just tested.
http://forum.cmsmadesimple.org/viewtopi ... =40&t=2661

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 11:07 am
by chillifish
Interesting, it doesn't work for me in 1.11.11.
----------------------------------------------

Cms Version: 1.11.11

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
CGExtensions: 1.42.2
FrontEndUsers: 1.24.1
CustomContent: 1.10
SelfRegistration: 1.8.2
Captcha: 0.4.6
FormBuilder: 0.7.4
CGUserDirectory: 1.4.5
SEOTools2: 1.2.1


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 64000000
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.28
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.35
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
Server Time Diff: No filesystem time difference found


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

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 11:16 am
by Jo Morg
I have this when creating/editing a link:
link.png

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 11:29 am
by chillifish
Me too, and when I click on it nothing happens. It does when browsing for images, but not when browsing for links.

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 11:38 am
by Jo Morg
The only reasons I see for it not working (as I said, it works on my side) are file corruption on upload/install/upgrade, or modsecurity restrictions.

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 12:05 pm
by chillifish
Brilliant, thanks it's now working. I purchased a new router recently and it was struggling with passive FTP before a firmware upgrade. It was upgrading this very site that pointed out the problem, I thought it had been solved.

Just re-applied the upgrade to 1.11.11 and all seems to be working.

Re: File picker won't browse uploads folder

Posted: Tue Oct 07, 2014 1:24 pm
by chillifish
Looks like I was a bit premature there. Now the problem is the opposite way round. It won't work for the image browser, but does work for the link browser.

It opens in uploads/resources/articles, but doesn't show the contents of the folder – understandable as they're pdfs. If I click up one directory, it takes me to uploads/resources, but won't go up any further directories. If I then click on articles to go back to articles, I get an error:
Error: at line 137 in file /home/sites/champagnesparklingwwc.co.uk/public_html/modules/FileManager/lib/class.filemanager_utils.php:

Cannot set current working directory to an invalid path
If I click "Show full trace" I get the following:
#0 /home/sites/champagnesparklingwwc.co.uk/public_html/modules/MicroTiny/action.filepicker.php(75): filemanager_utils::set_cwd('uploads/article...')
#1 /home/sites/champagnesparklingwwc.co.uk/public_html/lib/classes/class.CMSModule.php(1727): include('/home/sites/cha...')
#2 /home/sites/champagnesparklingwwc.co.uk/public_html/lib/classes/class.CMSModule.php(1795): CMSModule->DoAction('filepicker', '', Array, '')
#3 /home/sites/champagnesparklingwwc.co.uk/public_html/admin/moduleinterface.php(112): CMSModule->DoActionBase('filepicker', '', Array)
#4 {main}

Re: File picker won't browse uploads folder

Posted: Thu Oct 30, 2014 11:31 pm
by hexdj
Did you find a solution for this issue?

I am having the same issue at the moment, I'm able to browse with File Manager, Image Manager and TinyMCE, but not with MicroTiny. All modules up to date.

I even reinstalled CMSMS 1.11.11 on top of my previous install, just to make sure there was not a corrupt file or something.

Re: File picker won't browse uploads folder

Posted: Fri Oct 31, 2014 3:03 am
by hexdj
This issue seems to be related to this bug:
http://dev.cmsmadesimple.org/bug/view/10170

Thanks to calguy1000 it's now fixed in SVN.
svn: cmsmadesimple - branches/1.11.x (rev: 9742) calguy1000: Fixes #10170

Re: File picker won't browse uploads folder

Posted: Thu Nov 13, 2014 2:21 pm
by DaRichMan
But how to solve this issue?
Apparently, my English is not good enough :-[