Page 2 of 2

Re: Can't Change page parent

Posted: Wed Jan 06, 2016 7:39 pm
by Rolf
Is SitemapMadeSimple ready for CMSMS 2.x?

Re: Can't Change page parent

Posted: Wed Jan 06, 2016 7:54 pm
by moorezilla
I deleted those two rows. Site still works fine, except the parent dropdown switch functionality.

Found another weird table: cms_module_googlemaps_maps_seq

I don't have a google maps module installed, but I probably did at one time. Should I blow this table away as well?

I do have sitemapmadesimple installed, but this appears in the cms_modules table.

Thanks very much for the help. Very much appreciated... I know this is a pain in the ass.

Re: Can't Change page parent

Posted: Wed Jan 06, 2016 7:56 pm
by Rolf
Try to disable SitemapMadeSimple and see what happens

Re: Can't Change page parent

Posted: Wed Jan 06, 2016 8:01 pm
by moorezilla
Hi Rolf,

Thanks!

I just disabled sitemapmadesimple, cleared cache, but after doing so, the drop down for parent of the page in question is set to none. Trying to give it a parent allows a selection, but it then refreshes to none upon the second choice. The page is, however, in the proper location (hierarchy) on the site. It just doesn't appear to have the proper parent in the parent dropdown under the nav tab in the content manager, and parent changes can't be made there.

Re: Can't Change page parent

Posted: Wed Jan 06, 2016 9:13 pm
by Rolf
Humm, looks like a similar question in Dutch board of Pedes. I couldnt reproduce it there either...

Re: Can't Change page parent

Posted: Wed Jan 13, 2016 3:21 pm
by moorezilla
Still trying to get to the bottom of this. Nothing new of note in error_log, but looking at the config.php file suggests there is a bunch of cruft in there, as this is an install that dates WAY back to the early years of CMSMS. Perhaps this could be an issue? I'm not sure what upgrades do in terms of upgrading/rewriting the config.php file. I've included the config info below, with sensitive info redacted. I've commented out a few lines (also shown below) after looking at this (/doc/CMSMS_config_reference.pdf), but perhaps something else in there looks like it should be removed/altered? Thanks.

I think the ImageMagick stuff is in there for Gallery... not sure... but the Gallery module is installed.
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
#$config['php_memory_limit'] = '';
#$config['process_whole_template'] = '';
$config['debug'] = false;
#$config['output_compression'] = '1';
$config['timezone'] = 'America/New_York';
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'REMOVED';
$config['db_password'] = 'REMOVED';
$config['db_name'] = 'REMOVED';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
#$config['persistent_db_conn'] = '1';
#$config['use_adodb_lite'] = '1';
$config['root_url'] = 'REMOVED';
$config['ssl_url'] = 'REMOVED';
$config['root_path'] = '/var/www/html/cps';
$config['admin_dir'] = 'REMOVED';
$config['previews_path'] = '/var/www/html/cps/tmp/cache';
$config['uploads_path'] = '/var/www/html/cps/uploads';
$config['uploads_url'] = 'REMOVED';
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = '1';
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/var/www/html/cps/uploads/images';
$config['image_uploads_url'] = 'REMOVED';
$config['ssl_uploads_url'] = 'REMOVED';
$config['locale'] = '';
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'none';

Re: [solved] Can't Change page parent

Posted: Thu Jan 14, 2016 6:02 pm
by calguy1000
After gaining ssh and admin console access to this site I was able to login and add debug statements and find the issue.

The issue was a minor logic error that assumed results from the database would be returned in a consistent manner. For this user, under some circumstances this was not the case.

I fixed the issue live on his site, and have committed the fix into SVN for the next general release of CMSMS.