[solved]{content} tag isn't working

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
Vanzie

[solved]{content} tag isn't working

Post by Vanzie »

Hi,

I just transferred my site to another localhost and I imported the cms database with phpMyAdmin.

The problem is that if I want to look at my site, the template is shown, but the content isn't. The {content} tage is present and before I transferred the files and the databases everything was working fine.

Anyone knows what the problem could be?

grtz
Last edited by Vanzie on Thu Aug 09, 2007 1:33 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: {content} tag isn't working

Post by Dr.CSS »

Have you checked your config.php for the correct paths?...

If you make a new page with content does it show up, content that is?...
Vanzie

Re: {content} tag isn't working

Post by Vanzie »

I checked the config.php file and the paths are correct.

I also made a new page with some content, and the content didn't show up at this page either.

I really don't know what could be wrong. As I said in the first post, before the transfer everything worked perfect, and I didn't changed anything to the files or the databases afterwards.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: {content} tag isn't working

Post by Dr.CSS »

Is it still localhost in the new paths and is it supposed to be?...

If it's on a host most of them have a diff. name/path than that...
Vanzie

Re: {content} tag isn't working

Post by Vanzie »

It's supposed to be localhost because I'm still testing it locally.

The path where the website is located at the moment is: "C:\wamp\www\cmsmadesimple-mle" , and before the transfer this path was the same, so nothing changed to the path.

edit: i reinstalled cmsms-mle version 1.0.2(I was using this before too), and implemented all the templates, stylesheets, pages,etc. again, and the content still isn't being displayed.

Another weird thing I found out is that if I use the standard template, the content is displayed like it has to.
Last edited by Vanzie on Thu Aug 09, 2007 9:50 am, edited 1 time in total.
Vanzie

Re: [solved]{content} tag isn't working

Post by Vanzie »

I found the solution.

The problem was that I had a user defined tag "{categories}" in my template which includes a connection to a different database. Because of this connection, the connection with the cms database seemed to be lost, and the content couldn't be read from the cms database anymore.

To solve the problem, I changed the "$config['persistent_db_conn']"-statement in the config.php file to true. Now everything works fine again.
Locked

Return to “CMSMS Core”