[Oscailt] front page & modules - re-caching problem or wot?

Crash crash at subsection.org.uk
Sat May 31 00:17:08 PDT 2008


Thanks for the hints. The key to the problem might be in the first line 
of code in the code box:
 <?php global $system_config; ?>
The next lines are a select statement to retrieve items from the db:
 $query = "SELECT [...]
and
 $query_table = mysql_query($query);

Is simply declaring $system_config as global vars sufficient to then 
allow a db query? It's the only thing I can think that might be causing 
this problem.

Thanks again

C



Terence wrote:
> Hi Crash,
> I love the new Indy Cycle stuff. It's great and I'd be more than happy 
> to integrate it into the code.
>
> I checked the site and yes it's certainly a strange problem. My guess 
> is that maybe the value of some of the filters could be affecting it. 
> Is the display of the Indy Cycle list done via  a newswire module or 
> headline module -if it is, it just might be affected by the region, or 
> type setting of the main page newswire. If the display code, is your 
> own, then I don't really know.
>
> If you want to debug it, you could temporarily put in extra echo 
> statements into your code to print out key values that would affect 
> the list.
>
> Another possibility is that the include statement -I presume you have 
> one in the code box -to the code does not have the full relative path.
> So for example, maybe it says include("indycycle.inc") but it should 
> be include("objects/indycycle.inc") but it works in some cases but not 
> in others.
>
> You could also examine the code cache page for it. It will have the 
> same number as the object id. So if it is say obj 300, then the code 
> cache will be 300_en.inc -See the cache\objectstore directories.
>
> rgds
> Terence
>
> --- On *Fri, 30/5/08, Crash /<crash at subsection.org.uk>/* wrote:
>
>     From: Crash <crash at subsection.org.uk>
>     Subject: [Oscailt] front page & modules - re-caching problem or wot?
>     To: "Oscailt mailing list" <Oscailt at lists.indymedia.org>
>     Cc: "BIMC Tech list" <imc-bristol-tech at lists.indymedia.org>
>     Date: Friday, 30 May, 2008, 5:59 PM
>
>     Hi
>
>     We've created a
>      code box containing a link to our new Indycycle site - 
>     you can see this code box on the leftbar at
>     http://www.bristol.indymedia.org
>     just above the user preferences section. (We're quite proud of this and 
>     would happily share the code FWIW)
>
>     The code box as you will see is in the leftbar, of which there is only 
>     one variety.
>     However, rather weirdly the code only displays properly (showing the 
>     items available on indycycle) on all pages _except_ the front page. I 
>     have checked the front page and it includes the same leftbar as the 
>     other pages. I have re-cached the code box, then the left bar, then the 
>     front page in that order but the problem persists. Can you think of 
>     anything obvious that might be causing this?
>
>     Go raibh maith agaibh!
>
>     Crash
>     Bristol Indymedia Tech
>     _______________________________________________
>     Oscailt mailing
>      list
>     Oscailt at lists.indymedia.org
>     http://lists.indymedia.org/mailman/listinfo/oscailt
>
>
> ------------------------------------------------------------------------
> Sent from Yahoo! Mail 
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52418/*http://uk.docs.yahoo.com/nowyoucan.html>. 
>
> A Smarter Email. 




More information about the Oscailt mailing list