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
[solved]{content} tag isn't working
-
Vanzie
[solved]{content} tag isn't working
Last edited by Vanzie on Thu Aug 09, 2007 1:33 pm, edited 1 time in total.
Re: {content} tag isn't working
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?...
If you make a new page with content does it show up, content that is?...
-
Vanzie
Re: {content} tag isn't working
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.
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
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...
If it's on a host most of them have a diff. name/path than that...
-
Vanzie
Re: {content} tag isn't working
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.
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
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.
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.

