You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just note, because I don't suppose somebody will look at so specific case.
I have set custom frontpage file (with class2.php) included. I noticed that I am getting debug error about duplicate attempt to set canonical URL.
If I use directly index.php , it is ok.
If I use directly customfile.php, it is ok
But if my URL is homepage (frontpage, just mysite.com) there is a problem.
Debug: More than one canonical was attempted. This was ignored:
Array
(
[file] => mysite.com\ehandlers\application.php
[line] => 3170
[function] => actionIndex
[class] => core_index_index_controller
[type] => ->
)
Of course, I wasn't able to detect source of problem this way because I am not familiar with this topic.
So I checked calls of frontpage prefs/detection.
I notice this check in class2.php
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just note, because I don't suppose somebody will look at so specific case.
I have set custom frontpage file (with class2.php) included. I noticed that I am getting debug error about duplicate attempt to set canonical URL.
If I use directly index.php , it is ok.
If I use directly customfile.php, it is ok
But if my URL is homepage (frontpage, just mysite.com) there is a problem.
The first call is here:
Second one:
Of course, I wasn't able to detect source of problem this way because I am not familiar with this topic.
So I checked calls of frontpage prefs/detection.
I notice this check in class2.php
and this one in application.php run method
The second one is missing a check
$fpUrl === $fpPref
After adding it there, the problem was solved.
This way:
Maybe this helps somebody.
Beta Was this translation helpful? Give feedback.
All reactions