Manual:FindAnomalies.php

findAnomalies.php is a maintenance script that searches for missing revisions and archive rows. The plmra mode is useful for situations in which, for a bunch of pages, you get an error of "The revision #0 of the page named '[page name]" does not exist. This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log." You can find all the pages that have that error.

Adding a --fix option for plmr would be a simple matter of finding the most recent revision for a page and setting to that. More simply, one could just use attachLatest.php.

rmra mode
$ php findAnomalies.php --mode=rmra --ranges Reading the revision table... Reading the archive table... Reading the page table...

Here are the revision IDs of the revisions missing from both the revision and archive tables: 557		1 row;     1 anomalies found so far 19195		1 row;     2 anomalies found so far 20515		1 row;     3 anomalies found so far 20517		1 row;     4 anomalies found so far 20519		1 row;     5 anomalies found so far 20530		1 row;     6 anomalies found so far 23454		1 row;     7 anomalies found so far 23473		1 row;     8 anomalies found so far 23475		1 row;     9 anomalies found so far 27001-27030	30 rows;   39 anomalies found so far 27061-27226	166 rows;  205 anomalies found so far 27228-27252	25 rows;   230 anomalies found so far 27254-27562	309 rows;  539 anomalies found so far 28828		1 row;     540 anomalies found so far 29303		1 row;     541 anomalies found so far 29305		1 row;     542 anomalies found so far 31735-31736	2 rows;    544 anomalies found so far 32414		1 row;     545 anomalies found so far 32545		1 row;     546 anomalies found so far 32554		1 row;     547 anomalies found so far 32702		1 row;     548 anomalies found so far 32721		1 row;     549 anomalies found so far 32840		1 row;     550 anomalies found so far 32951		1 row;     551 anomalies found so far 32976		1 row;     552 anomalies found so far 33007		1 row;     553 anomalies found so far 33044		1 row;     554 anomalies found so far 33079		1 row;     555 anomalies found so far 33170		1 row;     556 anomalies found so far 33200		1 row;     557 anomalies found so far 33263		1 row;     558 anomalies found so far 33332		1 row;     559 anomalies found so far 33381		1 row;     560 anomalies found so far 33774		1 row;     561 anomalies found so far

561 anomalies found

plmra mode
$ php findAnomalies.php --mode=plmra Reading the revision table... Reading the archive table... Reading the page table...

Here are the pages that have no revision nor archived revision for their page_latest: Cambodia Cambridge,_Massachusetts Campaign_finance_law Campus_libertarian Canada Canada_and_the_2004_Summer_Olympics Candidate_rating_site Candidates Cannabis_decriminalization Capital_punishment Capitalist Carol_McMahon Cartoons Cascade_Policy_Institute Catallaxy Cathy_Young Cato_Institute Center_for_Sex_&_Culture Center_for_Sex_Positive_Culture Centre_for_Independent_Studies Charities Charles_Murray China Christian Christianity Civic_virtue Civil_liberties Claire_Wolfe Classic_liberalism Classical_Liberalism Classical_economics Classical_economist Classical_liberal Clone_Rights_United_Front Cloning Cold_War College_libertarians Colorado Committee Communication Competitive_Enterprise_Institute Consent_of_the_governed Conservatives Constitution Constitution_Party_(United_States) Constitutional_republic Constitutionalist_Party_Platform Copyright Corporations Costa_Rica Countries Country Creationism Creationist Crieteria Criminal_justice_administration. Crony_capitalism DWRoscoe_Sandbox Dan_Dunn_for_State_Representative Dan_Onorato Dark_Age Dark_Ages Dave_Hendrickson Dave_Herbert David_Bergland David_Boaz Gallery_of_nekkid_women_posing_with_libertarian_paraphernalia 2008_California_Candidates 2008_Presidential_election 2008_U.S._Presidential_election 2008_summer_Olympics Dr._Frank_R._Wallace Draft_By-Laws_for_Liberty_for_Massachusetts Drew_Carey Drug_war_proposals Earmark Economic_secession Economic_system Economics Ed_Clark Education Elected_Libertarians Eminent_Domain_Rally_NY Empiricism Encryption English_Civil_War English_language Frederic_Bastiat Free-market Free-market.com Free-market_environmentalism Free_Democratic_Party_of_Switzerland Free_Libertarian_Party_of_New_York Free_State_Wyoming Free_Talk_Live Free_West_Alliance Free_markets Freedom_and_Responsibility Freedom_of_association Freedom_of_speech French_Revolution Friedrich_Hayek Fully_Informed_Jury Fully_informed_jury G.A._Cohen GAO GIVE_MONEY_TO_US_NOW,_DINKUS. GLBT GMU_Student_Senate_cannabis_reform_resolution Gadsden_Flag Gambling Gang Garet_Garrett Gasden_Flag Gay_marriage Gene_Sharp Genetic_drift Genevieve Geo-libertarian George_Bush George_Jurgensen George_Phillies Freedom_of_religion Constitutional Classless_society Genocide Council_communism Council_communist Castroism Castroist David_D._Friedman Future_Imperfect:_Technology_and_Freedom_in_an_Uncertain_World Center_on_Culture_and_Civil_Society Center_on_Educational_Excellence Center_on_Entrepreneurial_Innovation Center_on_Global_Prosperity Center_on_Health_and_the_Environment Center_on_Law_and_Justice Center_on_Peace_and_Liberty Charles_G._Koch Charles_Koch DPRK Consumer_freedom Center_for_Consumer_Freedom Centrism Commerce_Clause Counterfeiting George_Mason_University Freedom_Fighter Criticism_of_anarchy Campaign_of_targeted_assassination Can_you_sell_yourself_into_slavery? Gay_sex Daniel_Lurker Center_for_a_Stateless_Society Darian_Worden Ed_Brown Carl_Malaskiewicz-Blaise Drinking_age Freedom_Democrats Garbage_worker Clay_Conrad Cop_Block Crack_the_Disparity George_Donnelly Dustin_Archer_letter GPS Chess Emigration_from_the_United_States Consumption_of_government_products Geolibertarian Circumcision Genetic_determinist Drug_test Cannibalism Genital_integrity French_économistes Frédéric_Bastiat

178 anomalies found