News:

Join the Facebook Fan Page.

Main Menu

Cache not writable error

Started by MultiformeIngegno, September 20, 2009, 06:00:07 AM

Previous topic - Next topic

MultiformeIngegno

#20
Quote from: Arantor on September 20, 2009, 06:33:21 PM
Well, MW skin classes are really not designed to be inter-operated with SSI, since while SMF is procedural, MW is object oriented, they are physically worlds apart in structure and design.

I'd be looking to make them look similar rather than trying to interoperate them; I'd say that they are so incompatible right down the wire it isn't even funny.
Mmmh... ok, but if you see wiki.rockciclopedia.com, it's almost done... the only problem I have is that I need to specify a context (I need this to specify some conditions for the wiki, an example: output a different description meta-tag with "if (!empty($context['mypage'])) echo'blablabla'" or having the right active button created in Subs.php)..

Why this code doesn't work for template_header:
$_GET['action'] = 'mypage';
$context['mypage'] = true;

...and work instead for template_main?
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Arantor

The problem is that when you get inside the files in MW, you start needing to global $context everywhere, which is probably the core reason it doesn't work.

MultiformeIngegno

Quote from: Arantor on September 20, 2009, 06:57:05 PM
The problem is that when you get inside the files in MW, you start needing to global $context everywhere, which is probably the core reason it doesn't work.
And if I use template_main fixing all syntax errors (as I'm trying to do)?
It should work 'cause I tried it echoing only "abcde 123" and it worked (also the context).! :)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Arantor

I don't think it'll work, but try it. AFAIR template_main isn't for the header area, but I could well be wrong - I'm not a specialist on the integration stuff, but after trying to theme MediaWiki once that was enough for me...

MultiformeIngegno

OK... and what do you think about these errors (they're the latest to fix, I hope!)..

1) Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/rock123/public_html/wiki/skins/MonoBook2.php on line 26

...that corrispond to the line in bold:
Quote
// Load up SSI
require_once('../forum/SSI.php');

// ...and go!
obExit(true);

// ...load the function template_main
function template_main()
{
   echo '

/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
* @todo document

I've tried replacing echo ' with echo \' but the error remains....

2) Parse error: syntax error, unexpected T_CLASS in /home/rock123/public_html/wiki/skins/MonoBook2.php  on line 34

...that corrispond to:
Quote
* @ingroup Skins
*/

class SkinMonoBook extends SkinTemplate {
   /** Using monobook. */
   function initPage( OutputPage $out ) {
      parent::initPage( $out );
      $this->skinname  = \'monobook\';
      $this->stylename = \'monobook\';
I can't see the problem with that line....
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Arantor

Well, if you have an unexpected class that means there is a syntax error further up the file, e.g. an untermined { } or similar.

Advertisement: