Eric Miller wrote:
> Ajay,
> 
> Here is a suggestion to at least minimize the possible option space.   
> In the function wfExhibitAddHTMLHeader(&$out) in Exhibit_Main.php
> 
> set the following variables
> 
> $exhibitEnabled = true;
> $exhibitTimeline = true;
> 
> and see what happens.
> 
> I don't normally suggest such brute-force tests since this will load  
> exhibit for every wiki page, but you can at least use to test briefly  
> to see if the problem might be with Wibbit code or your particular  
> wiki exhibit.

I'm having the same problem that Ajay describes.  Changing the settings 
as you indicate will load the Exhibit but for all pages.  To avoid this, 
I instead commented out line 120 of Exhibit_Main.php - "return true" at 
the end of function wfExhibitAddHTMLHeader.

My Exhibits now load and the header scripts only load for pages with 
Exhibit markup.  Since I'm not familiar with coding MediaWiki 
extensions, I have no idea if this is an acceptable method for getting 
the Exhibits to render.

An example of an Exhibit page can be seen here:
http://48744.info/exWiki/index.php?title=Actors

An example of a non Exhibit page on the same installation can be seen here:
http://48744.info/exWiki/index.php?title=Test

Anyone have a suggestion?

Thanks,
Ted

> I too have had problems getting Wibbit working consistently in our  
> production environment. I'm hoping to submit a patch shortly. But in  
> the meantime, perhaps this suggestion will help you narrow down the  
> problem.
> 
> --eric
> 
> On Mar 6, 2008, at 5:42 PM, Ajay wrote:
> 
>> Hello Everyone,
>>
>> I have verified that I have followed the installation instructions  
>> for Wibbit on the wiki page multiple times. I still do not get my  
>> exhibit (which is just the movies example in the wibbit wiki page).
>>
>> The details are below. I hope the developers can offer some advise.
>>
>> If you look at the attached index.html file (the source of my wiki  
>> page with the exhibit), then it is clear that the
>> script information (see below) mentioned in the Troubleshooting  
>> section of the Wibbit install page is *not* present.
>>
>> ------------------Script Information that should be present in Wiki  
>> Source----------------------
>>  <script type="text/javascript"
>>    
>> src="http://simile.mit.edu/repository/exhibit/branches/2.0/src/webapp/api/exhibit-api.js?autoCreate=false
>>  
>> ">
>>    </script>
>>  <script>SimileAjax.History.enabled = false;</script>
>>  <script type="text/javascript"
>>    src="/[mediawikiname]/extensions/ ExhibitExtension/scripts/ 
>> Exhibit_Create.js">
>>    </script>
>> ------------------------------------------------------------------------------------------------------------------------
>>
>> My version of mediawiki and PHP *as well as* the OutputPage.php file  
>> seems to be correct (see information below).
>>
>> So I poked around in the Exhibit_Main.php file. The script-lines  
>> mentioned above do not appear in index.html file attached, however  
>> the contents of TOOLBARSCRIPT in Exhibit_Main.php *does* appear in  
>> the index.html file. This seems to imply that for some reason either  
>> $wgExhibitHeaderAdded is true or $exhibitEnabled is *not true*. I do  
>> not know php, but it seems to me that somehow $wgExhibitHeaderAdded  
>> gets set to true (especially see the comments in the code). Is this  
>> the explanation?
>>
>> I also do not get any of the new table editor buttons after making  
>> the requisite changes mentioned in the install wiki page.
>>
>> Can anyone please help?
>>
>> More pertinent details perhaps:
>>
>> 1) The wiki page can only be seen after you have logged into the  
>> mediawiki.
>> 2) The only other extension I have installed is BreadCrumbs2.
>>
>> Thank you so much for any help and advise.
>>
>> --------------MediaWiki Version  
>> Information 
>> ----------------------------------------------------------------------------------
>>
>>      • MediaWiki: 1.11.1
>>      • PHP: 5.2.5 (cgi)
>>      • MySQL: 4.1.22-standard-log
>> ------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> -------------------- 
>> OutputPage 
>> .php 
>> ----------------------------------------------------------------------------------------------------
>>
>>         $wgRequest->response()->header( "Content-type: $wgMimeType;  
>> charset={$wgOutputEncoding}" );
>>         $wgRequest->response()->header( 'Content-language: '. 
>> $wgContLanguageCode );
>>
>>         if ($this->mArticleBodyOnly) {
>>             $this->out($this->mBodytext);
>>         } else {
>>             wfProfileIn( 'Output-skin' );
>>             wfExhibitAddHTMLHeader( $this ); # Added by Ajay for  
>> Exhibit extension.
>>                         $sk->outputPage( $this );
>>             wfProfileOut( 'Output-skin' );
>>         }
>> ---------------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>>
>> Looking for last minute shopping deals? Find them fast with Yahoo!  
>> Search.<index.html>_______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
> 
> 
> 
> 
> 
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to