Project 1999

Go Back   Project 1999 > General Community > Rants and Flames

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 05-19-2021, 12:45 PM
BlackBellamy BlackBellamy is offline
Planar Protector

BlackBellamy's Avatar

Join Date: Apr 2010
Location: At the barricades.
Posts: 2,812
Default

I went through the history of all 84 pages here https://wiki.project1999.com/Category:Permafrost and rolled back any change made in Jan 2021 and later. I refreshed the Perma zone page after every change. Nothing I did made a difference, I undid all my changes and are at a loss...
  #2  
Old 05-19-2021, 12:50 PM
BlackBellamy BlackBellamy is offline
Planar Protector

BlackBellamy's Avatar

Join Date: Apr 2010
Location: At the barricades.
Posts: 2,812
Default

@loramin did you or anyone edit the Loc Map or the scripts that pull them in recently? Grasping at straws here
  #3  
Old 05-19-2021, 01:46 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,471
Default

Quote:
Originally Posted by BlackBellamy [You must be logged in to view images. Log in or Register.]
I went through the history of all 84 pages here https://wiki.project1999.com/Category:Permafrost and rolled back any change made in Jan 2021 and later. I refreshed the Perma zone page after every change. Nothing I did made a difference, I undid all my changes and are at a loss...
I don't know exactly how it works, but the wiki scripts that control the dynamic zone stuff don't update immediately. Instead, they update daily? nightly? weekly?

So, even if all your reverts did fix it, you'd have to wait at least 24 hours (and maybe as long as a week, if you want to be truly certain) before you'd know whether it actually fixed things.

Quote:
Originally Posted by BlackBellamy [You must be logged in to view images. Log in or Register.]
@loramin did you or anyone edit the Loc Map or the scripts that pull them in recently? Grasping at straws here
I didn't, but another wiki admin (Kaejer) recently did "loc map" Permafrost.

However, without getting super technical, the "loc map" feature (ie. being able to see maps with red Xs on them to show where NPCs are) is completely "client-side": it happens entirely in your browser (in Javascript).

But the dynamic zone stuff is done "server-side", using PHP. In a technical sense they are entirely distinct, and the loc map stuff can't cause a problem like this (because, to the server, the only change the loc map stuff makes is to add a category to the page ... and that's 100% harmless).
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
  #4  
Old 05-19-2021, 01:30 PM
OuterChimp OuterChimp is offline
Sarnak

OuterChimp's Avatar

Join Date: Nov 2019
Location: USA
Posts: 312
Default

Learn to code.
  #5  
Old 05-19-2021, 04:02 PM
Barm McLir Barm McLir is offline
Kobold

Barm McLir's Avatar

Join Date: Mar 2016
Posts: 140
Default

It would help to see if PHP reports an error. There server for the wiki returned this to me;
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.

I'm a Debian guy, so I googled for the PHP error log location for CentOS and it seems to be;
/var/log/php-fpm/www-error.log
  #6  
Old 05-19-2021, 05:57 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,471
Default

Quote:
Originally Posted by Barm McLir [You must be logged in to view images. Log in or Register.]
It would help to see if PHP reports an error. There server for the wiki returned this to me;
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.

I'm a Debian guy, so I googled for the PHP error log location for CentOS and it seems to be;
/var/log/php-fpm/www-error.log
Agreed ... but (unfortunately) only Rogean and Ravhin have access to the PHP error logs.

However, if you're curious you can find the PHP code here: https://wiki.project1999.com/utils/wikiUtils.php (under the "Custom Extensions Source" link).
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
  #7  
Old 05-20-2021, 09:15 AM
Barm McLir Barm McLir is offline
Kobold

Barm McLir's Avatar

Join Date: Mar 2016
Posts: 140
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
However, if you're curious you can find the PHP code here: https://wiki.project1999.com/utils/wikiUtils.php (under the "Custom Extensions Source" link).
Wow I didn't catch the guy did everything as a MediaWiki extension but yeah that makes sense.

In DynamicZoneList_body.php, lines 590-591 it generates the list of NPC names from the page's NPC table itself;

Code:
  $catNames = array($zoneName,"NPCs");
$NPCs = DynamicZoneList::getCatIntersection($db,$parser,$catNames);
I guess the idea is you just need to manually add an existing NPC in the first column and the extension fills in the next six.

Line 671 is the loop for each table row:
Code:
foreach ( $NPCs as $row )
To get the column values, it calls parseNPCPage at line 184. The most complex section is the one dealing with loot, lines 223 - 252.

My first suspicion is that one of the NPC's loot entries contains some text that is choking the parser.
  #8  
Old 05-19-2021, 04:41 PM
starkind starkind is offline
Banned


Join Date: Apr 2021
Posts: 6,358
Default

It's like p99 has alzhiemers.

Thanks for the effort guys!
  #9  
Old 05-19-2021, 04:42 PM
starkind starkind is offline
Banned


Join Date: Apr 2021
Posts: 6,358
Default

Quote:
Originally Posted by starkind [You must be logged in to view images. Log in or Register.]
It's like p99 has alzhiemers.

Thanks for the effort guys!
It may be easier to recreate that page from scratch at this point.
  #10  
Old 05-19-2021, 05:59 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,471
Default

P.S. Typically what happens in these sorts of situations is that Ravhin comes "out of retirement" at some point, checks the logs, finds the problem, and fixes it. So really, all we need to do is wait.

That being said, if anyone is a PHP coder who wants to be more involved, first check out the source code (linked above), and then ... if you're still serious about helping out ... send a PM to Ravhin.
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Closed Thread


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

Forum Jump


All times are GMT -4. The time now is 05:47 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.