Page 1 of 1
[solved]{content} tag isn't working
Posted: Wed Aug 08, 2007 11:01 am
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
Re: {content} tag isn't working
Posted: Wed Aug 08, 2007 1:09 pm
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?...
Re: {content} tag isn't working
Posted: Wed Aug 08, 2007 2:29 pm
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.
Re: {content} tag isn't working
Posted: Wed Aug 08, 2007 3:09 pm
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...
Re: {content} tag isn't working
Posted: Thu Aug 09, 2007 7:17 am
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.
Re: [solved]{content} tag isn't working
Posted: Thu Aug 09, 2007 1:45 pm
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.