Listcontent.php /stylesheet problem resolved!

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.
Locked
Jussi A.

Listcontent.php /stylesheet problem resolved!

Post by Jussi A. »

Hi,

This problem seems to be resolved now  :)  Please see below!
I have a problem now, please see attached picture.

I was playing around with style sheets last night, and now listcontent.php is not working.
Silly me: I deleted log files, because everything seemed to be working just fine.

I have double checked file and folder permissions. My ISP guy told me that there are no changes in servers.
Did try the "has_children" patch - nothing.

I'm running the "Maui" version of CMSMS.


Any help would be greatly appreciated,


Cheers,


Jussi

What finally resolved this problem was that I uploaded listcontent.php from the installation package to /ADMIN/.

In the, what seems to be a working piece of code, the HasChildren function/procedure call read like this:

Code: Select all

	foreach ($all as $thisitem)
	{
		if ($thisitem->[b]HasChildren[/b]())
		{
			$cs .= $thisitem->Id().'=1.';
		}
	}
	set_preference($userid, 'collapse', $cs);
}

Code: Select all

				#Check for children
				if ($contentobj->[b]HasChildren[/b]())
				{
					$_GET['error'] = 'errorchildcontent';
				}

Code: Select all

    if ($display != 'none')
    {
        $thelist .= "<tr id="tr_".$one->Id()."" class="$currow" onmouseover="this.className='".$currow.'hover'."';" onmouseout="this.className='".$currow."';">\n";
        $thelist .= "<td>";
        if ($root->[b]hasChildren[/b]())
        {
            if (!in_array($one->Id(),$openedArray))
            {

Code: Select all

         $hierarchy = &$hierManager->getRootNode();

	if ($hierarchy->[b]hasChildren[/b]())
	{
		$pagelist = array();
		foreach ($hierarchy->getChildren() as $child)
So, when I edited the listcontent.php at the server, I must have messed up the haschildren calls.

In conclusion: if you don't know what you're doing, just - please! - DON'T do it  ;)


Cheers,


Jussi
EDIT: Code etc.

[gelöscht durch Administrator]
Last edited by Jussi A. on Sun Dec 31, 2006 1:54 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Listcontent.php /stylesheet problem?

Post by Dr.CSS »

Whatever file you were messing with is still in the folder on your comp. so you can just FTP it to your site and over write the one there now...
Jussi A.

Re: Listcontent.php /stylesheet problem?

Post by Jussi A. »

Thanks for your reply Mark,

but I strongly suspect the problems are in the file permissions.

In Module Manager when trying to set permissions I get this error message:

Code: Select all

Couldn't change permissions on some files.
I'll keep working on trying to resolve the problem, will definitely keep you posted!


Cheers,


Jussi
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Listcontent.php /stylesheet problem?

Post by Dr.CSS »

Did they say this before or has anything changed in the Extensions > Modules section, I think this is what you mean by Module Manager...
Jussi A.

Re: Listcontent.php /stylesheet problem?

Post by Jussi A. »

Sorry for being inaccurate.

What I did in Extensions -> Modules was that before doing anything else I enabled FCKeditorX. I had disabled that feature on purpose: another person was supposed to start "test driving" it to make sure it's suitable for us.

Right after that I noticed that Content -> Pages is not working properly.

After that I tried re-installing FCKeditorX. I also uploaded all the style templates from this workstation to server, but I'm still in square one - can't see the pages.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Listcontent.php /stylesheet problem?

Post by Dr.CSS »

uploaded all the style templates from this workstation to server
?

If this is a near new install, no major use or page creation or style sheet/template revisions, I would just start over...

The "Couldn't change permissions on some files." message from module permission changes not working has to do with your servers settings...

I worked on 18 sites for someone that had it on all of them but was able to do what ever I needed to do, install modules, modify CSS/templates, create/delete pages, the whole 9 yards, anything I wanted, just couldn't change permissions in modules, so we just left it at that and it works fine....

http://gochinasites.com/index.php , joomla template I converted/reworked for CMSMS for them...

" Sorry for being inaccurate" Don't fret it, no worries mate ;)
Jussi A.

Re: Listcontent.php /stylesheet problem?

Post by Jussi A. »

OK, here's some more information.

As you can see from attached pic, AddContent.php seems to be working.

I now have the following modules installed (see pic).

When FCKeditorX was installed and active, AddContent.php returned the following error messages, in this order:

Code: Select all

 Unknown toolbar item "CMSModules"

Code: Select all

Unknown toolbar item "CMSContent"
If this is a near new install, no major use or page creation or style sheet/template revisions, I would just start over...
The installation is fairly new, two weeks or so. There currently are some 400 pages in our CMSMS. It's not, however, in "major use", yet.

EDIT: quote & below

[gelöscht durch Administrator]
Last edited by Jussi A. on Sun Dec 31, 2006 12:16 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”