Troubleshooting


Solutions to some of the more common issues encountered with these modules can be found in the following sections.

PostCalendar "Compile dir not Writable!"

This message occurs when your web server does not have permission to write to these directories:

 /modules/PostCalendar/pntemplates/compiled /modules/PostCalendar/pntemplates/cache 

Access to these folders allows Smarty to compile and cache PostCalendar templates. Unix users need to give the web user account write permissions to both folders. If you are still having trouble, change the folder access using chmod 777 to test the problem.

PostCalendar Changes Showing Late

If you are seeing a slow refresh of the changes in PostCalendar, it might be that the system is still caching older data to speed up performance of the calendar. You can manually clear the Smarty cache using the link in the PostCalendar administration pages to solve this problem. It causes Smarty to examine, recompile, and recache new versions of the pages.

pnEvent Block "Warning: Missing Argument"

pnEvent sometimes returns the error: Warning: Missing Argument 2 for url() in /includes/pnHTML.php on Line 669. url() is a function call that expects a link and something to click on (such as a word) to activate the link. The second argument is the word that's clicked on.

When pnConcert was converted into pnEvent, subtle code changes were also made to the module. One of them that might cause the preceding warning message is in this file:

 /modules/concert/pnblocks/next.php 

Edit that file and look at line 201. The original pnConcert line looks like this:

 $output->URL(pnModURL('concert','user','display', array('dc_id'=>$item['dc_id'])),'<img src="/books/1/160/1/html/2/images/global/edit.gif" border="0" alt="'.$item['dc_locale'].$status.'" title="'.$item['dc_locale'].$status.'">'); 

Whereas the pnEvent line appears as:

 $output->URL(pnModURL('event','user','display', array('dc_id'=>$item['dc_id']))); 

The reference to the edit image tag (see Figure 7.4) has been removed. The icon was removed to help secure the module and prevent general users from hurting content. But removing only the image displays the warning if your PHP is set to display all potential problems. The solution to this problem is to either replace the original line to put the edit icon back, or simply comment it out to remove the icon cleanly without an error. The line with the comment looks like this:

 // $output->URL(pnModURL('event','user','display', array('dc_id'=>$item['dc_id']))); 



    PostNuke Content Management
    PostNuke Content Management
    ISBN: 0672326868
    EAN: 2147483647
    Year: 2003
    Pages: 207
    Authors: Kevin Hatch

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net