? Success

User tests: Successful: Unsuccessful:

avatar alexva24
alexva24
26 Jan 2016

The aim of this PR is providing possibility to execute custom component's parse preprocess rules instead develop onAfterInitialise plugin.

For testing you should create parsepreprocess method on router of any installed components. The method will be executed on 593 line /libraries/cms/router/router.php

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar alexva24 alexva24 - open - 26 Jan 2016
avatar alexva24 alexva24 - change - 26 Jan 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jan 2016
Labels Added: ?
avatar wojsmol
wojsmol - comment - 26 Jan 2016

Replaces #8801

avatar anibalsanchez anibalsanchez - test_item - 5 Feb 2016 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 5 Feb 2016

I have tested this item :white_check_mark: successfully on 27802e7

Test OK.

Tested in com_content/router.php

class ContentRouter extends JComponentRouterBase
{
public function parsepreprocess() {
die;
}


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8986.

avatar brianteeman brianteeman - change - 9 Mar 2016
Category Router / SEF
avatar Curiensol Curiensol - test_item - 2 Aug 2016 - Tested successfully
avatar Curiensol
Curiensol - comment - 2 Aug 2016

I have tested this item successfully on 27802e7

Tested in components\com_users\router.php @icampus Pizza, Bugs & Fun

class UsersRouter extends JComponentRouterBase //test
{
public function parsepreprocess() {
echo "Working!";

}


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8986.

avatar brianteeman brianteeman - change - 2 Aug 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 2 Aug 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8986.

avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Category Router / SEF Libraries Router / SEF
avatar rdeutz rdeutz - change - 14 Aug 2016
Milestone Added:
avatar rdeutz
rdeutz - comment - 14 Aug 2016

@alexva24 cloud you fix code style and since tag, please.

avatar zero-24
zero-24 - comment - 14 Aug 2016

@rdeutz it is prepared here: https://github.com/joomla/joomla-cms/compare/staging...zero-24:alexva24?expand=1 you can merge than i open the CS / @since version PR for you to merge.

avatar rdeutz rdeutz - change - 15 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-15 07:45:25
Closed_By rdeutz
avatar rdeutz rdeutz - close - 15 Aug 2016
avatar rdeutz rdeutz - merge - 15 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 15 Aug 2016
avatar rdeutz rdeutz - reference | 9df98b7 - 15 Aug 16
avatar rdeutz rdeutz - merge - 15 Aug 2016
avatar rdeutz rdeutz - close - 15 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2016
Labels Removed: ?
avatar zero-24
zero-24 - comment - 15 Aug 2016

Thanks @alexva24 and @rdeutz

avatar izharaazmi izharaazmi - reference | 376f090 - 15 Aug 16
avatar ggppdk ggppdk - reference | 1fc47db - 19 Aug 16
avatar roland-d roland-d - reference | 7966778 - 11 Sep 16
avatar astridx astridx - reference | 0010fee - 18 Sep 16
avatar astridx astridx - reference | a79c77a - 18 Sep 16
avatar vinespie
vinespie - comment - 19 Oct 2016

I think there is a problem with using "JComponentHelper::getComponents()".
Static method "load" in class "JComponentHelper" get all components even those who discover.

avatar bertmert
bertmert - comment - 22 Oct 2016

Could someone please correct the Milestone 3.7.0? This PR was merged in Joomla 3.6.3. Thank you!

avatar zero-24 zero-24 - change - 22 Oct 2016
Milestone Added:
avatar zero-24 zero-24 - change - 22 Oct 2016
Milestone Removed:
avatar xtech86
xtech86 - comment - 25 Oct 2016

With xmap installed and on Joomla! 3.6.2 works fine, Joomla! 3.6.4 we get

syntax error, unexpected '$items' (T_VARIABLE)

Because this change was pulled in on 3.6.3. Whilst I appreciate it's likely bad outdated coding in xmap. A lot of sites use xmap and we will now be taking them down with this change :-/

Many thanks
Tony

avatar zero-24
zero-24 - comment - 25 Oct 2016

syntax error, unexpected '$items' (T_VARIABLE)

where? is that line?

avatar xtech86
xtech86 - comment - 25 Oct 2016

Sorry! Error reports It was caused at line 123 of
/libraries/cms/router/site.php

I'm just downloading an older backup to try and produce a server to replicate it on since the site was live I just removed xmap completely.

avatar zero-24
zero-24 - comment - 25 Oct 2016
avatar xtech86
xtech86 - comment - 25 Oct 2016

No, that is the same file. I replaced the parse function completely with the version from 3.6.2 to debug it and did an output of the option on the foreach loop. noticing it produced a fatal after com_xamp was loaded with the 3.6.3 site.php router file.

I'll debug further and let you know the outcome.

avatar zero-24
zero-24 - comment - 25 Oct 2016

Please open than a new bug report with all needed information. Commenting on a closed / merged PR get missed fast. ;)

avatar brianteeman
brianteeman - comment - 25 Oct 2016

Isn't xmap abandoned now?

avatar xtech86
xtech86 - comment - 25 Oct 2016

Yep, but a normal user wouldn't have a clue or know anything about their xmap version since it's not shown in the updater if it's of a certain version.

The fact the site works fine on 3.6.2 but the 3.6.4 update breaks the site is my point, an incremental version is breaking things regardless of how it should be done. Anyway I'll debug and open a new issue.

avatar Hackwar
Hackwar - comment - 23 Aug 2018

Sorry to say this, but this change is pretty horrible. It loads all components, regardless of them even having a frontend part, and then does lots of checks, only to fail for most components and then creating legacy routers for those. And that is why the site of a customer of mine instantiates 57 router objects in the frontend and sites with xmap fail after this "feature". And all of that because one dev didn't want to create a plugin for his special parseing code. ?

avatar brianteeman
brianteeman - comment - 23 Aug 2018

Please open than a new bug report with all needed information. Commenting on a closed / merged PR get missed fast

avatar Hackwar
Hackwar - comment - 26 Aug 2018

I know that, but since this has been released, there is nothing that we really can do. This is now out in the open and we have to wait for Joomla 4.0 to fix this. Coincidentally, this did not survive the changes for the 4.0 router.

So, an unsolvable bug for 3.x that has been fixed in 4.0. I just wanted to document that this is a stupid idea in the hopes that future generations stumble upon this and make wiser decisions.

Add a Comment

Login with GitHub to post a comment