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.
string(67) "Smarty error: unable to read resource: "globalcontent:Contact"" string(67)
"Smarty error: unable to read resource: "globalcontent:Contact""
I have checked out that I really do have a global content block "Contact" there. I am using user defined tags to retrieve data from another database, using $_GET['id'] variable I retrieve from the address bar.
{title} works fine btw.
I am using CMS Made Simple 1.5.2 "Caguas" and this is the first version I have installed, I haven't upgraded it from an older version.
Thanks in advance.
Last edited by elfduck on Wed Mar 11, 2009 7:33 am, edited 1 time in total.
Double check your spelling and the case. It is case-sensitive.
If all else fails, use a bigger hammer.
M@rtijn wrote:
This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
I did, once again, it doesn't work... Also I noticed that all those CMSMS-tags work, that are before my user defined tags. All CMSMS-tags after my user defined tags do not work.
<img title="Famous place" src="uploads/images/famous_place1.jpg" alt="Famous place"
width="170" height="128" /><br /><br />Here is one famous place. Nice looking scenery, I must say.
These are just some random content I have inserted to show something until I get the real content to put in there. In my mind, my user defined tags mess up the global content blocks or something, I don't know.
Try removing this from your template: {random_blob prefix="Famous_places"}
I am not sure if it compatible anymore. The prefix part is not the actual name of the content block. It is usually the first part of the name that would be common amongst other names. In this example you would want to use "Famous_"
If all else fails, use a bigger hammer.
M@rtijn wrote:
This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
I tried now two more things, to wrap my code inside {php}...{/php}-tags and to upgrade CMSMS into version 1.5.3. {php}...{/php}-tags had no effect (I also edited config.php for this, of course). Upgrading changed the error message into:
So I tried to narrow down the problem now. If I remove the user defined tag from my template, everything works perfectly. So the problem lies in the user defined tag I have made. I tried to change all the variable names from that, because I was thinking that maybe they are somehow changing CMSMS's own variables or whatever. In any case, it didn't work. So the only option I have left is to take my user defined tag elsewhere and create a pop-up page for it or I will simply create the website by hand, without CMSMS. I need it to work and I don't think a pop-up page is going to cut it... Please, if you have any suggestions, I'm willing to try just about anything.
I am likely not going to be able to help. But if you post the UDT here, we may be able to see if we can notice something you did. Sometimes and outside view is all that is needed for a simple problem.
If all else fails, use a bigger hammer.
M@rtijn wrote:
This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
All right, I'll add the first search I have in my frontpage template. I have changed the comments, variable names, array names, almost everything but the code itself for security and also because I use different language in those... Please note that the directory 'admin' is not the CMSMS admin dir.