From: Leonard m. <spa...@ya...> - 2005-06-29 14:23:56
|
I recently tried some of the themes available in my wiki user login, and one of them PHPWiki was not happy with. I immediately started getting these errors, and get them every time I log into wiki with my user login: lib/plugin/RateIt.php (In template 'navbar') (In template 'top') (In template 'body') (In template 'html'):230: Warning[2]: extract(): First argument should be an array Fatal error: Call to undefined function: _get_pageid() in /var/www/sggl/htdocs/sgglwiki/lib/plugin/RateIt.php on line 544 Effectively this wiki user login is useless. How do I reset the active theme for my wiki user back to the default. I do have wiki admin priviledge by the way, but I don't see how that helps me. Thanks, Leonard __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 |
From: Dan F. <dfr...@cs...> - 2005-06-29 14:41:26
|
Leonard mckinley wrote: >I recently tried some of the themes available in my wiki user login, >and one of them PHPWiki was not happy with. I immediately started >getting these errors, and get them every time I log into wiki with my >user login: > > lib/plugin/RateIt.php (In template 'navbar') (In template 'top') (In >template 'body') (In template 'html'):230: Warning[2]: extract(): First >argument should be an array > > Fatal error: Call to undefined function: _get_pageid() in >/var/www/sggl/htdocs/sgglwiki/lib/plugin/RateIt.php on line 544 > >Effectively this wiki user login is useless. > >How do I reset the active theme for my wiki user back to the default. I >do have wiki admin priviledge by the way, but I don't see how that >helps me. > > Do you have access to the source code? I think one way to dodge this would be to put return ""; right at the top of the run() method in lib/plugin/RateIt.php. This would skip the ratings plugin altogether, and allow the user to change the theme back. Not sure. You might try it. Dan |
From: Leonard m. <spa...@ya...> - 2005-06-29 15:14:01
|
Dan Frankowski: > >I recently tried some of the themes available in my wiki user login, > >and one of them PHPWiki was not happy with. How do I reset the > >active theme for my wiki user back to the default. > > I think one way to dodge this would be to put > > return ""; > > right at the top of the run() method in lib/plugin/RateIt.php. Thanks! Oddly there was no Preferences button with the wikilens theme (the one causing problems), but I found the right URL to surf to and was able to change my theme back to the default. However, silly me, I tried one of the other profiles (the one right below wikilens, whichever that is), and now I'm locked out with: Fatal PhpWiki Error lib/DbaDatabase.php (In template 'body') (In template 'html'):54: Fatal[256]: dba_open(/var/www/sggl/htdocs/sgglwiki/pages/wiki_session.gdbm,w): Driver initialization failed for handler: gdbm: Can't be writer * file: /var/www/sggl/htdocs/sgglwiki/pages/wiki_session.gdbm * mode: w * handler: gdbm: * ?> I did chmod this file to 666 just to try and get past it, but it still fatals with this same error. I swear if you help me get back to the default theme, I'll never change the theme again! ;-) Thanks, Leonard ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com |
From: Dan F. <dfr...@cs...> - 2005-06-29 15:42:51
|
Leonard mckinley wrote: >Dan Frankowski: > > >>>I recently tried some of the themes available in my wiki user login, >>>and one of them PHPWiki was not happy with. How do I reset the >>>active theme for my wiki user back to the default. >>> >>> >>I think one way to dodge this would be to put >> >>return ""; >> >>right at the top of the run() method in lib/plugin/RateIt.php. >> >> > >Thanks! Oddly there was no Preferences button with the wikilens theme >(the one causing problems), but I found the right URL to surf to and >was able to change my theme back to the default. > >However, silly me, I tried one of the other profiles (the one right >below wikilens, whichever that is), and now I'm locked out with: > > Fatal PhpWiki Error > > lib/DbaDatabase.php (In template 'body') (In template 'html'):54: >Fatal[256]: >dba_open(/var/www/sggl/htdocs/sgglwiki/pages/wiki_session.gdbm,w): >Driver initialization failed for handler: gdbm: Can't be writer > > * file: /var/www/sggl/htdocs/sgglwiki/pages/wiki_session.gdbm > * mode: w > * handler: gdbm: > * ?> > >I did chmod this file to 666 just to try and get past it, but it still >fatals with this same error. > >I swear if you help me get back to the default theme, I'll never change >the theme again! ;-) > > I'm afraid I don't know what theme that is, what that error in the code is, or what version of PhpWiki you're running, or what your configuration is (e.g., what back-end you're using for pages). Thus, I'm afraid I don't have time to look into it now. I just answered before because I had a quick suggestion. Dan |
From: Leonard m. <spa...@ya...> - 2005-06-29 16:31:12
|
Dan Frankowski: > I'm afraid I don't know what theme that is, what that error in the > code is, or what version of PhpWiki you're running, or what your > configuration is (e.g., what back-end you're using for pages). Well, thanks for your first tip anyway. That got me out of the wikilens brokenness. As to the rest, for you or anyone else that can help me reset my wiki user's theme to the default again, here's our setup: Broken Theme: Sidebar Desired Theme: default phpwiki-1.3.10 apache-2.0.52-r1 Gentoo Base System 1.4.16 Thanks, Leonard __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html |
From: Reini U. <ru...@x-...> - 2005-06-30 04:30:35
|
Leonard mckinley schrieb: > I swear if you help me get back to the default theme, I'll never change > the theme again! ;-) As intermediate fix I suggest to disable theme switching from the userpreferences template. Out-commenting it, so that admins can enable it when they think it works. |
From: Leonard m. <spa...@ya...> - 2005-06-29 16:43:33
|
Leonard mckinley: > I recently tried some of the themes available in my wiki user login, > and one of them PHPWiki was not happy with. ... Effectively this > wiki user login is useless. > > How do I reset the active theme for my wiki user back to the default. For the archives, I found a solution. To my latest problem with the Sidebar theme. Go to the server's themes subdirectory, mv the directory for the hosed profile aside, symlink default to that name, log into wiki and change your profile away from the buggy one, and then restore the themes directory to its original state. E.g.: cd themes mv Sidebar Sidebar.old ln -sf default Sidebar <log in and change your theme to default> rm Sidebar mv Sidebar.old Sidebar Leonard __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html |