Go Back   Tech Support Forum > Design Forum > Web Serving and Management

User Tag List

[SOLVED] Dokuwiki some functionality broken after failed tinkering

This is a discussion on [SOLVED] Dokuwiki some functionality broken after failed tinkering within the Web Serving and Management forums, part of the Tech Support Forum category. Hi there. I wanted to get rid of the inability to have spaces in pagenames as it looks unprofessional. since


Closed Thread
 
Thread Tools Search this Thread
Old 02-09-2013, 03:50 AM   #1
TSF Team, Emeritus
 
Join Date: Jan 2009
Location: Toronto, Canada
Posts: 9,127
OS: Windows 10

My System


Hi there.

I wanted to get rid of the inability to have spaces in pagenames as it looks unprofessional.

since it was rather close to my Anteater Dokuwiki so I thought would be able to perform the tricks provided.

However, altering the template.php with nothing other than
Code:
require_once(DOKU_INC.'hacks/nicetitle.php'); //brings in function nicetitle()
  $name = nicetitle($id); //nicetitle() will replace underscores "_" by " "
then creating a file within the path /hacks/nicetitle.php and inputting the following
Code:
function 

nicetitle($id) {
    $result = preg_replace("/_/"," ",$id);
    if ($result) {
        return($result);
    }
    else {
        return($id);
    }
 }
yielded a completely nonfunctional wiki.

That's fine, I fixed the problem by copying the template.php from an older version of my wiki (still same Dokuwiki, just dissimilar pages) and replacing the current one with that version.

Now, however, the admin, recent changes and old revisions options are nonfunctional. When I attempt to use such features I get the following:
Code:
Fatal error: Call to a member function int() on a non-object in K:\dokuwikistick-2010-11-07a\DokuWikiStick\dokuwiki\inc\template.php on line 121
for revisions;
Code:
Fatal error: Call to a member function str() on a non-object in K:\dokuwikistick-2010-11-07a\DokuWikiStick\dokuwiki\inc\template.php on line 245
for admin;

and
Code:
Fatal error: Call to a member function extract() on a non-object in K:\dokuwikistick-2010-11-07a\DokuWikiStick\dokuwiki\inc\template.php on line 127
for recent changes.

Keep in mind I did this overnight and didn't think of keeping an actual backup of my wiki until after the fact.

Please help me get at least the admin panel back.

note: i posted this issue on dokuwiki's forums many days ago and have gotten no response. I'd like some assistance with it, if at all possible, please.
-WOLF- is offline  
Sponsored Links
Advertisement
 
Old 02-09-2013, 10:57 PM   #2
Moderator
- Design Team
- Networking Team
 
Fjandr's Avatar
 
Join Date: Sep 2012
Location: Spokane, WA
Posts: 2,483
OS: Windows XP SP3, Windows 7 SP1, Debian, CentOS

My System


Are you using the current version? If so, you should be able to download the installation files and get another copy of the borked file.

If not, have you looked for a copy of the installation which matches your version?

Are you using add-ons? (I'm not familiar with DocuWiki, so this may not be applicable)
__________________

Fjandr is offline  
Old 02-09-2013, 11:26 PM   #3
TSF Team, Emeritus
 
Join Date: Jan 2009
Location: Toronto, Canada
Posts: 9,127
OS: Windows 10

My System


Well, see, that's the funny thing. I replaced the offending file - template.php - with the one from my non-mobile copy. That one and my mobile copy run the same version of Dokuwiki so it should have identical template files. I have several plugins but all were tested prior and worked fine, it wasn't until I applied my 'hack' that this happened. It's strange that when I reverse the changes, functionality is broken.
-WOLF- is offline  
Sponsored Links
Advertisement
 
Old 02-10-2013, 12:01 AM   #4
Moderator
- Design Team
- Networking Team
 
Fjandr's Avatar
 
Join Date: Sep 2012
Location: Spokane, WA
Posts: 2,483
OS: Windows XP SP3, Windows 7 SP1, Debian, CentOS

My System


I would suggest backing up the installation, re-installing, and then transferring the data back into the new installation. Unless it's a heavily-modified version, it'll likely take you less time than tracking down the offending changes.

If you really want to fix it manually, the first place to start is looking for identical function calls or variable uses in the lines mentioned, as well as the line immediately before each.
__________________

Fjandr is offline  
Old 02-10-2013, 02:50 AM   #5
TSF Team, Emeritus
 
Join Date: Jan 2009
Location: Toronto, Canada
Posts: 9,127
OS: Windows 10

My System


Quote:
Originally Posted by Fjandr View Post
I would suggest backing up the installation, re-installing, and then transferring the data back into the new installation. Unless it's a heavily-modified version, it'll likely take you less time than tracking down the offending changes.

If you really want to fix it manually, the first place to start is looking for identical function calls or variable uses in the lines mentioned, as well as the line immediately before each.
That actually worked perfectly. I feel silly not having thought of that now, it seems obvious!

Thanks.
-WOLF- is offline  
Old 02-10-2013, 01:55 PM   #6
Moderator
- Design Team
- Networking Team
 
Fjandr's Avatar
 
Join Date: Sep 2012
Location: Spokane, WA
Posts: 2,483
OS: Windows XP SP3, Windows 7 SP1, Debian, CentOS

My System


Quite welcome, happy to help.
__________________

Fjandr is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] probable malware on HP laptop
I was asked to fix an HP laptop running Win 7 Home (German). It has been running very slowly and I suspect malware as the cause. While running dds and gmer on it, it bluescreened 4 times and also the Avira antivirus picked up a few virii in different areas. I have no boot or installation disks...
rhorton Resolved HJT Threads 61 02-19-2012 08:51 AM
no internet access after virus
recently had win 7 2012 virus, removed virus, now cannot connect to any internet. troubleshooting states can not detect networks proxy settings. i dont know what any of following report means, but thought it might help. Farbar Service Scanner Ran by haley (administrator) on 09-01-2012...
cody7880 Resolved HJT Threads 65 01-18-2012 10:32 AM
Random/rare STOP0x1E
Been fighting against this one for a while now and couldn't figure out the cause, especially since the crashes come and go and are very rare... anyway, here is the data: ∑ OS - Windows 7 x64 SP1 OEM (MSDNAA version) ∑ Age of system: one and a half years ∑ Age of OS installation: a month ∑...
Soukyuu BSOD, App Crashes And Hangs 3 09-26-2011 11:16 AM
Trouble with Directx 10
When trying to install a redist for a game i was going to play, this error comes up: "An internal system error occured. Please refer to DXERROR.log and Directx.log in your Windows folder to determine the problem" This is my DXError.log: -------------------- module: dxupdate(Sep 4 2009),...
xAtlas PC Gaming Support 1 07-29-2011 01:43 PM
Need some help. Virus/malware Thanks!
:upset: Tons of popup windows saying this file is infected and that file is infected, do I want to open up my security software (and this isn't my CA security suite doing this). Even if I'm using Firefox random windows in IE will open with (******.com/porno.com/adult.com). Hardly any...
R_Willis Inactive Malware Help Topics 7 01-20-2011 09:50 AM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2
Powered by vBadvanced CMPS v3.2.3


All times are GMT -7. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts