Ultimate SEO Urls

Roque Search Engines adding session to URL? - Ultimate SEO Urls

Roque Search Engines adding session to URL?

by mhsuffolk » Sat Apr 22, 2023 6:11 am

Phoenix 1.0.8.19 USU 3.07 PHP 7.4

Occasionally getting in the shop side error log.

PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 1?ceid=a4448893e073eb44c1689dd55b583ec9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318

I had 5 yesterday all with different session numbers and repeated 4 or 8 times (Lines in the error log)
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Roque Search Engines adding session to URL?

by mhsuffolk » Sun Apr 23, 2023 7:48 am

Also getting this .

[21-Apr-2023 20:39:20 Europe/London] PHP Warning: DB: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1' LIMIT 1' at line 7 from <SELECT pd.products_name, m.manufacturers_name, cd.categories_name, p.products_model, p2c.categories_id
FROM products_description pd
INNER JOIN products_to_categories p2c ON p2c.products_id = pd.products_id
INNER JOIN products p ON pd.products_id = p.products_id
LEFT JOIN manufacturers m ON m.manufacturers_id = p.manufacturers_id
INNER JOIN categories_description cd ON p2c.categories_id = cd.categories_id AND cd.language_id='1'
in /home/****/public_html/includes/system/versioned/1.0.8.1/database_core.php on line 44
[21-Apr-2023 20:39:20 Europe/London] PHP Warning: WHERE pd.products_id='896'' AND pd.language_id='1' LIMIT 1> in /home/****/public_html/includes/system/versioned/1.0.8.1/database_core.php on line 44

I only have one language in the store.
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Roque Search Engines adding session to URL?

by Piernas » Sun Apr 23, 2023 7:03 pm

mhsuffolk wrote:Phoenix 1.0.8.19 USU 3.07 PHP 7.4

Occasionally getting in the shop side error log.

PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 1?ceid=a4448893e073eb44c1689dd55b583ec9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318

I had 5 yesterday all with different session numbers and repeated 4 or 8 times (Lines in the error log)
It may be related to the previous fix about undefined constant error. This fix can cause this (append 1 to the URL):

Code: Select all

->setVar( 'sid', $GLOBALS['SID'] ) // MH change
Maybe the log is previous to the second fix?
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Roque Search Engines adding session to URL?

by mhsuffolk » Mon Apr 24, 2023 6:03 am

Sorry, no, they are fresh errors.
Is it to do with the fact that the ceid has been included? I think rogue search engines are including the session id when they record their first page. I get 4 or 8 rows of errors with the same ceid then it changes. here are some examples from yesterday and this morning.


[23-Apr-2023 17:14:59 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:14:59 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:14:59 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:14:59 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:16:39 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:16:39 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:16:39 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 17:16:39 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=f90e1889f20adbe0ce62634959a71be9 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318

[23-Apr-2023 21:54:48 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 1?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:54:48 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 1?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:54:48 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 1?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:54:48 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 1?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:55:04 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 2?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:55:04 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 2?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:55:04 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 2?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[23-Apr-2023 21:55:04 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 2?ceid=58d422b3fe882e949ff6072c6e885b75 presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318

[24-Apr-2023 06:36:43 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=2a80c683aa7021f67ef7ec36d21c266d presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[24-Apr-2023 06:36:43 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=2a80c683aa7021f67ef7ec36d21c266d presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[24-Apr-2023 06:36:43 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=2a80c683aa7021f67ef7ec36d21c266d presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
[24-Apr-2023 06:36:43 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=2a80c683aa7021f67ef7ec36d21c266d presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Roque Search Engines adding session to URL?

by Piernas » Wed Apr 26, 2023 2:58 pm

I don't have a live site so I can't reproduce it. Do you have access to server logs? It would help to know what's the exact URI.
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Roque Search Engines adding session to URL?

by mhsuffolk » Wed Apr 26, 2023 3:15 pm

Ah Ha. I think it relates to Info.php. I have a lot of reference pages that customers look through.
Error entry:

[25-Apr-2023 14:29:25 Europe/London] PHP Warning: aPage_Modules::stripPathToLastNumber: Incorrect path value of 8?ceid=82aa259c3ed7eb310214e7412ae069fa presented in /home/****/public_html/includes/apps/ultimate_seo_urls/abstracts/page_modules.php on line 318

Server Log entry.
**.**.**.**. - - [25/Apr/2023:14:29:25 +0100] "GET /info.php?pages_id=8?ceid=82aa259c3ed7eb310214e7412ae069fa HTTP/1.1" 200 9211 "-" "Mozilla/5.0 (Linux; Android 9; KFMUWI) AppleWebKit/537.36 (KHTML, like Gecko) Silk/106.3.5 like Chrome/106.0.5249.170 Safari/537.36"
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Roque Search Engines adding session to URL?

by Piernas » Wed Apr 26, 2023 4:27 pm

Ok, I'll look at it. I didn't put much work on info pages so there may be some problem with the module.
You can remove or rename the module until it's fixed - anyway it's the app who prints the error, not PHP itself.

Does this page work ok for you?
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Roque Search Engines adding session to URL?

by mhsuffolk » Wed Apr 26, 2023 4:36 pm

In normal circumstances the info page rewrite works correctly, it seems to be when it is the first loaded page which contains the session ceid
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact:

Re: Roque Search Engines adding session to URL?

by Piernas » Mon May 01, 2023 1:53 am

Weird - I cannot reproduce the error on a quick test.
Does the page load correctly? - I believe it should.
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Roque Search Engines adding session to URL?

by mhsuffolk » Mon May 01, 2023 6:22 am

Yes, the page loads correctly.
If an info page link is clicked on as the FIRST click after landing on index.php then the ceid appears in the URL, just as in the error message and the error is thrown. Subsequent clicks do not display the ceid or throw the error. This ceid behaviour is exhibited on which ever page is clicked on after initial landing but this error only exists on info.php.

Also now getting this sometimes which might be related.

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/****/public_html/templates/default/includes/pages/info.php on line 19
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Contact: