[solved] Can't Change page parent

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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can't Change page parent

Post by Rolf »

Is SitemapMadeSimple ready for CMSMS 2.x?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
moorezilla
Forum Members
Forum Members
Posts: 24
Joined: Mon May 19, 2014 5:08 pm

Re: Can't Change page parent

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can't Change page parent

Post by Rolf »

Try to disable SitemapMadeSimple and see what happens
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
moorezilla
Forum Members
Forum Members
Posts: 24
Joined: Mon May 19, 2014 5:08 pm

Re: Can't Change page parent

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can't Change page parent

Post by Rolf »

Humm, looks like a similar question in Dutch board of Pedes. I couldnt reproduce it there either...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
moorezilla
Forum Members
Forum Members
Posts: 24
Joined: Mon May 19, 2014 5:08 pm

Re: Can't Change page parent

Post 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';
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: [solved] Can't Change page parent

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

Return to “CMSMS Core”