For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Tue Mar 08, 2016 1:44 pm
Hello,
When attempting to delete or move an item in file manager I get a red warning “Internal error: unknown file action” at the top of the page and the admin log says “Attempt to set working directory to an invalid location: images”
I cannot see anything in the PHP error logs.
My info is as follows,
Code: Select all
----------------------------------------------
Cms Version: 2.1.2
Installed Modules:
AdminSearch: 1.0
CMSContentManager: 1.1
CMSMailer: 6.2.14
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.3
MenuManager: 1.50.2
MicroTiny: 2.0.3
ModuleManager: 2.0.2
Navigator: 1.0.2
News: 2.50.4
Search: 1.50.2
ThemeManager: 1.1.8
TinyMCE: 3.1
Config Information:
php_memory_limit:
max_upload_size: 6000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false
Php Information:
phpversion: 5.6.17
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 24567
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: On
disable_functions: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, ini_set
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 6M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: Off (False)
curl: On
Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: On (True)
smarty_compilecheck: Off (False)
smarty_cache_udt: On (True)
auto_clear_cache_age: Off (False)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-042stab111.12 On i686
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.73
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Permission Information:
tmp: /home/folder_name_here/public_html/mywebsite.co.uk/tmp (0755)
tmp_cache: /home/folder_name_here/public_html/mywebsite.co.uk/tmp/cache (0755)
templates_c: /home/folder_name_here/public_html/mywebsite.co.uk/tmp/templates_c (0755)
modules: /home/folder_name_here/public_html/mywebsite.co.uk/modules (0755)
uploads: /home/folder_name_here/public_html/mywebsite.co.uk/uploads (0755)
File Creation Mask (umask): /home/folder_name_here/public_html/mywebsite.co.uk/tmp/cache (0755)
config_file: 0444
----------------------------------------------
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Fri Mar 11, 2016 10:56 am
anyone?
I have not made any progress on sorting this out myself.
chandra
Post
by chandra » Fri Mar 11, 2016 2:00 pm
Is it an updated installation?
Had similar trouble sometimes ago ... have checked config.php and there were some parameters they are optionally. CMSMS can detect it better
.
After "cleaning" config.php the trouble was gone...
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Fri Mar 11, 2016 2:38 pm
Here is my config.php file,
Do you see this is missing anything? Can anyone compare this to theirs 2.1.2 config.php? the site seems to function correctly in every other way.
Code: Select all
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'db_username_here';
$config['db_password'] = 'db_password_here';
$config['db_name'] = 'db_name_here';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/London';
?>
PinkElephant
Forum Members
Posts: 173 Joined: Fri Feb 06, 2009 2:08 pm
Post
by PinkElephant » Fri Mar 11, 2016 4:19 pm
system9866 wrote: Attempt to set working directory to an invalid location
Do you still see it when
File Manager -> Settings Advanced Mode is enabled?
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Fri Mar 11, 2016 4:39 pm
Hi and thank you for your reply,
Yes I still get the error when I enable advanced mode,
PinkElephant
Forum Members
Posts: 173 Joined: Fri Feb 06, 2009 2:08 pm
Post
by PinkElephant » Fri Mar 11, 2016 5:39 pm
Shame, that might have made it easier to track down. I only asked because I'm seeing a vaguely similar messages when trying to copy a file, e.g., uploads/images/logo1.gif
Selecting the "/uploads" destination gives "The destination directory specified is invalid" -- but only in non-advanced mode.
(After creating an "uploads/uploads" directory, the copy operation works).
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Thu Mar 17, 2016 5:14 pm
bump! anyone else have any ideas?
calguy1000
Support Guru
Posts: 8169 Joined: Tue Oct 19, 2004 6:44 pm
Post
by calguy1000 » Thu Mar 17, 2016 5:31 pm
My first bald assed guess would be that mod_security is in the way.
maybe try contacting your host and see if they can disable mod_security for your sites.
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.
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Thu Mar 17, 2016 8:52 pm
Hello Calguy and thank you for your suggestion.
I have just checked with my host and they have confirmed mod_security is disabled on my sites.
chandra
Post
by chandra » Fri Mar 18, 2016 9:23 am
Please check ALL activated server modules. You can do it with a little script
Code: Select all
<?php
print_r(apache_get_modules());
?>
There are some other modules like Suhosin and Zend Guard Loader to harden servers against intrusion.
system9866
Forum Members
Posts: 25 Joined: Tue Oct 06, 2015 12:21 pm
Post
by system9866 » Fri Mar 18, 2016 12:12 pm
hmm.
the PHP error log says
Code: Select all
18-Mar-2016 12:10:38 Europe/London] PHP Fatal error: Call to undefined function apache_get_modules()
chandra
Post
by chandra » Fri Mar 18, 2016 9:37 pm
Suggested command is valid till PHP 7
https://secure.php.net/manual/en/functi ... odules.php
It seems your host has blocked the execution. So you have to ask them once again if there are other modules active like mod_security (suhosin, Zend Guard or similar).
Maybe you can check it by yourself (CPanel?).
PinkElephant
Forum Members
Posts: 173 Joined: Fri Feb 06, 2009 2:08 pm
Post
by PinkElephant » Mon Mar 21, 2016 3:56 pm
system9866 wrote: Do you see this is missing anything? Can anyone compare this to theirs 2.1.2 config.php?
Looks OK to me but I'm guessing that you've removed '
url_rewriting ' and '
page_extension ' since the sysinfo post. My main 2.1. test installation only uses a few entries in addition to config[db*]:
Code: Select all
$config['admin_dir'] = 'my-secret-place';
$config['admin_url'] = 'https://www.example.com/my-secret-place';
$config['tmp_cache_location'] = '/srv/example.com/public/private/cmsms/tmp/cache';
$config['tmp_templates_c_location'] = '/srv/example.com/public/private/cmsms/tmp/templates_c';
$config['url_rewriting'] = 'mod_rewrite';
$config['timezone'] = 'Europe/London';
// $config['debug_to_log'] = true;
If
debug doesn't give any clues it may be worth testing explicit values for
uploads_path ,
image_uploads_path & any associated
_urls .
PinkElephant
Forum Members
Posts: 173 Joined: Fri Feb 06, 2009 2:08 pm
Post
by PinkElephant » Mon Mar 21, 2016 3:59 pm
system9866 wrote: Code: Select all
18-Mar-2016 12:10:38 Europe/London] PHP Fatal error: Call to undefined function apache_get_modules()
Afaics, the interwebs is suggesting that the fatal is normal with
Server Api: cgi-fcgi .