Hutchy68 / pivot

A MediaWiki mobile skin which "Pivots" seamlessly to any size display.
https://pivot.wikiproject.net
BSD 2-Clause "Simplified" License
37 stars 18 forks source link

Tabs not displayed #60

Closed funes79 closed 6 years ago

funes79 commented 6 years ago

Setup

Issue

Detailed description of the issue goes here.

I changed the default settings

$wgPivotDefaultFeatures = [
    'usePivotTabs' => true,
    'wikiNameDesktop' => 'Wiki name desktop'
];
$wgDefaultSkin = 'pivot';
$wgAllowSiteCSSOnRestrictedPages = true;
$wgAllowUserCss = true;
$wgHiddenPrefs[] = 'skin';

but instead of Tabs the page displays this:

<a href="#panel1">Tab 1</a><a href="#panel2">Tab 2</a><a href="#panel3">Tab 3</a><a href="#panel4">Tab 4</a>
Lorem ipsum dolor sit amet, ornare neque quisque etiam posuere voluptatem erat, scelerisque ornare tellus duis arcu eget ullamcorper. Lectus orci tincidunt augue tristique. Libero mus augue tortor urna, mauris sollicitudin fusce vestibulum nec, erat blandit in placerat ultrices, facilisis interdum consectetuer. Maecenas in unde, dolor a est ornare placerat dicta, ut nostra. Vehicula aliquam erat arcu. Nibh integer vestibulum natoque lacinia quis. A felis euismod sapien, eu dapibus, adipiscing in risus fringilla, hendrerit maecenas in dolor, vel nullam a.
Hutchy68 commented 6 years ago

What kind of caching are you using? Did you clear it? Ex, File cache? Delete cache files.

funes79 commented 6 years ago

It is a fresh install, using file cache. But cannot find anything in cache dir or /tmp.

[root@ip-10-197-10-28 dev]# cat LocalSettings-dev.php  | grep Cache
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
## Set $wgCacheDirectory to a writable directory on the web server
#$wgCacheDirectory = "$IP/cache";
$wgCacheDirectory = "tmp/mediawiki_dev_cache";
[root@ip-10-197-10-28 dev]#
[root@ip-10-197-10-28 dev]# cat LocalSettings-dev.php  | grep cache
#$wgCacheDirectory = "$IP/cache";
$wgCacheDirectory = "tmp/mediawiki_dev_cache";
[root@ip-10-197-10-28 dev]#
[root@ip-10-197-10-28 dev]# ls -l ./cache
total 0
[root@ip-10-197-10-28 dev]# pwd
/var/www/dev
[root@ip-10-197-10-28 dev]# ls -l /tmp
<empty>
Hutchy68 commented 6 years ago

That cache directory is for localisation. $wgUseFileCache explicitly must be set to true. Then the default is $wgFileCacheDirectory is "{$wgUploadDirectory}/cache" which would be under your images. Since it didn't grep, assuming not using it.

Quick test, open an incognito browser window to the url you are using on dev and check results.

???? Browsers and versions: MediaWiki version: Database version: PHP version: Pivot version: Extension version (if connected to the issue):

Using 1.30.0 (4c97eee) 20:35, 2 March 2018 tabs works fine for me.

image

Hutchy68 commented 6 years ago

Oh, check output buffering too. php.ini and make sure it is set to something and not Off

funes79 commented 6 years ago

The page does not understand/interpret the \

funes79 commented 6 years ago

And I tried to delete the local cache rm -rf ./images_dev/cache But didnt helped.

Hutchy68 commented 6 years ago

Oops, just noticed you have $wgPivotDefaultFeatures. Change it to:

$wgPivotFeatures = [
    'usePivotTabs' => true,
    'wikiNameDesktop' => 'Wiki name desktop'
];
funes79 commented 6 years ago

Yes, that was it! Thanks for the help. After the change from wgPivotDefaultFeatures to wgPivotFeatures I had to clear the cache and then the tabs displayed. Thanks

Hutchy68 commented 6 years ago

Great... closing