Page 1 of 1
Really simple question: how to active debug?
Posted: Sun Dec 21, 2008 5:39 am
by npessoa
Hi, guys. I'm trying to debug my config.php file so I can figure out why my new content pages aren't showing at all. I found some archived posts on the board that suggested doing this, switched debug = true in config.php, but I don't know what the next step is.
Is the debugging report supposed to render on the home page of the site? Or by going to config.php?
The home page looks completely normal, and going to config.php just shows me a blank page (the exact issue I'm trying to fix).
If anyone can tell me how to debug, that would be great. thanks!
Re: Really simple question: how to active debug?
Posted: Sun Dec 21, 2008 5:47 am
by JeremyBASS
Edit in the config file...

... you need to set debug to true... edit the file... don't "go" to it
hope that helps
Re: Really simple question: how to active debug?
Posted: Sun Dec 21, 2008 5:57 am
by npessoa
I finally found it. The question had to do with where to see the "output" of the debugging session. I did edit the file and set it to "true" and uploaded it again. I just didn't realize that the outputted information appears at the bottom of the page, so you have to scroll all the way down.
I deleted my template-setup.php file, and now I can add new content (but with a big error at the top of the page saying now smarty can't find the template-setup, and there's also something wrong with my template-metadata). I'll have to fix all that tomorrow. Not sure what's wrong with it.
Re: Really simple question: how to active debug?
Posted: Sun Dec 21, 2008 6:50 am
by JeremyBASS
oh .. well hard to say.. post more info and then may-be help can be given.. what’s the error.. and like the forum rules say.. what’s your version, mods, and all info...
hard to help when I'm shotting in the dark...
Re: Really simple question: how to active debug?
Posted: Mon Dec 22, 2008 5:33 pm
by npessoa
JeremyBASS wrote:
oh .. well hard to say.. post more info and then may-be help can be given.. what’s the error.. and like the forum rules say.. what’s your version, mods, and all info...
hard to help when I'm shotting in the dark...
No problem, the version is
1.5.1., and the issue has to do with the Global Content Blocks. Initially, this guy (who knows a lot about the CMS) set up custom
template-metadata and
template-setup files for us. We had no issues with that with the old version (1.3.1). But since upgrading, something's incompatible, and when template-setup.php is loaded, a few of the pages appear, but it's impossible to add new pages (they appeared blank).
So I deleted the template-setup file. Only NOW this is the error I'm getting: (across the top of all the pages)
string(69) "Smarty error: unable to read resource: "globalcontent:template-setup""
...which obviously means that it's missing. Except I don't know which parts of template-setup.php it NEEDS and which parts were causing the longer string of errors with 1.5.1. Because if I put the file back in the CMS, THEN it starts giving me errors about template-metadata.php.
Bottom line, I need both these files debugged and because I can't reach the guy who initially helped with these files, it's frustrating. If it would help to post the contents of both these files, I'd be glad to.
Re: Really simple question: how to active debug?
Posted: Mon Dec 22, 2008 5:53 pm
by JeremyBASS
yeah I can't say much if they bypassed things... I may be able to help if.. if you post all files that are custom... Also I don't know if I can get to this tilll a day or so from now... sorry pay jobs first.. start by posting information, files globalcontent blocks, etc... and we'll see what we can do..
cheers
jeremyBass
Re: Really simple question: how to active debug?
Posted: Mon Dec 22, 2008 6:05 pm
by npessoa
I can pay - I was just about to post in the "commercial help" forum, out of desperation. Just let me know how to contact you.
Just to recap, when both these files are uploaded, there are no error messages, but new content pages do not show anything. In other words, if you go to the URL I sent you, and go to the page /test/, you'll see nothing (but a doctype in the header).
When I delete just template-setup.php, I get the error I posted before. So something in template-setup.php is messing with the ability for 'new' pages to be rendered correctly.
Code: Select all
template-metadata
{* assign generated metadata to var so we can test it later *}
{capture assign=metatemp}
{metadata}
{* automatically insert imagegallery tag css/js and nifty action for gallery subpages *}
{if $pagetype eq 'gallerypage'}{global_content name='meta-imagegallery'}{/if}
{/capture}
{* note stylesheet tag is in global metadata *}
{* output previously captured metadata. *}
{$metatemp}
{* no sense including nifty script on pages not requiring it, so we test metadata for use of Nifty before adding it to the output *}
{if $metatemp|lower|strpos:'nifty' neq false}<__script__ type="text/javascript" src="uploads/niftycube/niftycube.js"></__script>{/if}
and here's the other:
Code: Select all
template-setup
{strip}{* just removing the line breaks used to spread things out in here *}
{* set a page type to use later for customizing template/css for some pages *}
{* $pagetype=index narrows the content, shows the frontpage photo and cd info box *}
{if $page_alias eq 'index' or $page_alias eq 'home'}{assign var=pagetype value='index'}
{* $pagetype=xx=img floats a sm or lg img right of content, code for which is in gcb side-xx-img *}
{elseif $page_alias eq 'biography' or $page_alias eq 'someotherpage'}{assign var=pagetype value='lg-img'}
{elseif $page_alias eq 'links' or $page_alias eq 'journal' or $page_alias eq 'news'}{assign var=pagetype value='sm-img'}
{* $pagetype=gallerypage for child pages of gallery, adds css/js and a right submenu, added by gcb's *}
{elseif $cgsimple->get_root_alias() eq 'gallery' and $page_alias neq 'gallery'}{assign var=pagetype
value='gallerypage'}
{* if nothing else applies above, we'll set $pagetype to the $page_alias so can set some page-specific css if desired and include in the main css instead of inline or in page metadata *}
{else}{assign var=pagetype value=$page_alias}
{/if}
{* end template setup, this gcb needs to be inserted into template between opening html and head tags *}
{/strip}
Re: Really simple question: how to active debug?
Posted: Mon Dec 22, 2008 6:10 pm
by JeremyBASS
well I'd be happy to push you in, it'd have to be after 4:00pm PST today... I'm 35ph... but I'll take a look and see if it's something simple in about an hour...
jeremyBass
Re: Really simple question: how to active debug?
Posted: Mon Dec 22, 2008 6:14 pm
by npessoa
Thank you so much. Do you want to PM me your email address? That's probably easier than discussing everything on the boards. I can send you login info, etc. And after 4 (or whenever) is fine. I'm running errands for the next couple of hours but I'm free today. I just need to get this figured out sooner than later, because I get a calendar module up and running on this site, but I can't do that if I can't add new content.
N