Jump to content

TypeError: Cannot assign string to property IPS\Dispatcher\_Front::$currentPage of type ?int (0)


Go to solution Solved by Stuart Silvester,

Recommended Posts

Posted

image.thumb.png.8282478b7680ac9d6c89e37f150340b8.png

image.thumb.png.2c2c6f29cade0f59e4664e509a98b025.png

After updating to version 4.7.19, Googlebot is causing a large number of system errors

From what can be seen in the logs, it leaves a "/" at the end of the address

I also applied the "Invision Community Optimization ( robots.txt )"

Has anyone else experienced this issue after updating?

Posted

I see that there is a hook interfering there. You'll want to disable all third party applications/plugins and then test again.

Posted

I have observed the same issue.

There is one kind of parameter which causes the issue for me.

I have no idea if this link is coming from the IPS installation itself or somewhere cached in google.
Maybe the link was valid in a older version of IPS.

 

Hint: Removing the ' in the URL fixes the issue. After removal the query parameter is correctly translated to page/2/

 

image.thumb.png.882425bde71e2862a4f773de1a6688b2.png

Posted
6 minutes ago, derpunker said:

I have observed the same issue.

There is one kind of parameter which causes the issue for me.

I have no idea if this link is coming from the IPS installation itself or somewhere cached in google.
Maybe the link was valid in a older version of IPS.

 

Hint: Removing the ' in the URL fixes the issue. After removal the query parameter is correctly translated to page/2/

 

image.thumb.png.882425bde71e2862a4f773de1a6688b2.png

That could be simply someone typing that in there.

Posted

Not really, the issue was never seen before the update. (update was installed on Nov. 16)

Since the update, the errors are popping up and the root cause is always the same.

image.thumb.png.a0f61090fac5b18b59f6952629a4c11a.png

Posted
16 minutes ago, derpunker said:

Not really, the issue was never seen before the update. (update was installed on Nov. 16)

I'm not quite sure what you mean, correlation is not causation. Just because it happened on the same date doesn't mean it is the same problem. Could be some bot accessing it.

I would ensure your custom theme is up to date, along with all third party applications/plugins to start to rule out anything in the software.

Posted

@Jim M with applications disabled, the same error appears without the line from hook447

The characters that will appear are /  ‘  %

Example addresses

  • https://www.site.com/topic-t1383/?page=6/
  • https://www.site.com/profile/606548-adik/content/?page=%27&type=forums_topic_post
Posted

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

Posted (edited)

Hello, 🙂

It looks like I'm having the same problem ?... I disabled a third party application and also tried using a default theme, but it didn't help.

image.png.c34e91cbaa0e3cb3189800965cfbebfe.png

Example :

Quote

The log entry was triggered by a guest (Invité)

Just now

The URL of page the error occurred on was https://mywebsite.com/forum/126-les-listes-complémentaires/?filter=1&sortby=posts&sortdirection=asc

Backtrace

#0 /home/myaccount/public_html/init.php(1049): IPS\_Log::log('TypeError: Cann...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(TypeError))
#2 {main}

and there are also some strange urls in the logs, for instance :

Quote

I also have high cpu usage for user mysql...

Edited by SecondSight
Posted
14 minutes ago, Jim M said:

The software should be stopping that.

It seems like it didn't... Is there something I need to configure so that it works well ?

I enabled mod_security on my server and it fixed the high cpu usage for user mysql.

I noticed that the errors in System logs also stopped, but I don't know if these are linked to mod_security or if it's because I also manually banned two IPs :

Quote

52.167.144.236 # Manually denied: 52.167.144.236 (US/United States/msnbot-52-167-144-236.search.msn.com) - Fri Nov 22 20:45:04 2024
207.46.13.157 # Manually denied: 207.46.13.157 (US/United States/msnbot-207-46-13-157.search.msn.com) - Fri Nov 22 20:45:59 2024

 

Posted
36 minutes ago, SecondSight said:

It seems like it didn't... Is there something I need to configure so that it works well ?

I'm not sure what you mean, it did stop it. That's why it appeared in the error page.

Posted
On 11/16/2024 at 10:38 AM, adik said:

image.thumb.png.8282478b7680ac9d6c89e37f150340b8.png

image.thumb.png.2c2c6f29cade0f59e4664e509a98b025.png

After updating to version 4.7.19, Googlebot is causing a large number of system errors

From what can be seen in the logs, it leaves a "/" at the end of the address

I also applied the "Invision Community Optimization ( robots.txt )"

Has anyone else experienced this issue after updating?

same

image.thumb.png.94686e32f87896aac0911d5d75f02d99.png

and some of that tooo

image.thumb.png.9cdb5492e01cc1c009fe1e67713c7ea3.png

Posted

Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...