MyBB Community Forums

Full Version: Google SEO 1.8.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Do you use a VPS or some sharing hosting (maybe cPanel) ?
(2024-04-30, 12:48 PM)RocketFoot Wrote: [ -> ]
[30-Apr-2024 12:47:52 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/bladetalker1/public_html/inc/plugins/google_seo/plugin.php:110

Line 110 of inc/plugins/google_seo/plugin.php is:
    if($mybb->config['database']['encoding'] != 'utf8mb4')
Can you confirm that you are still getting the above error, and that the code of that line is as above?

If so, could you check whether or not there's a line setting your database encoding in inc/config.php? It should look something like this:
$config['database']['encoding'] = 'utf8mb4';
(2024-05-01, 01:05 AM)Laird Wrote: [ -> ]
(2024-04-30, 12:48 PM)RocketFoot Wrote: [ -> ]
[30-Apr-2024 12:47:52 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/bladetalker1/public_html/inc/plugins/google_seo/plugin.php:110

Line 110 of inc/plugins/google_seo/plugin.php is:
    if($mybb->config['database']['encoding'] != 'utf8mb4')
Can you confirm that you are still getting the above error, and that the code of that line is as above?

If so, could you check whether or not there's a line setting your database encoding in inc/config.php? It should look something like this:
$config['database']['encoding'] = 'utf8mb4';

The 2nd line is NOT in my config.php

(2024-05-01, 01:05 AM)Laird Wrote: [ -> ]
(2024-04-30, 12:48 PM)RocketFoot Wrote: [ -> ]
[30-Apr-2024 12:47:52 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/bladetalker1/public_html/inc/plugins/google_seo/plugin.php:110

Line 110 of inc/plugins/google_seo/plugin.php is:
    if($mybb->config['database']['encoding'] != 'utf8mb4')
Can you confirm that you are still getting the above error, and that the code of that line is as above?

If so, could you check whether or not there's a line setting your database encoding in inc/config.php? It should look something like this:
$config['database']['encoding'] = 'utf8mb4';

The 2nd line was NOT in my config.php but I reverted back to php7.4 and was able to configure the SEO settings in the Plugin page.  It is working on php7.4 but the plugins disappear as soon as I bump it up to php8.2
(2024-05-02, 01:01 PM)RocketFoot Wrote: [ -> ]The 2nd line was NOT in my config.php but I reverted back to php7.4 and was able to configure the SEO settings in the Plugin page.  It is working on php7.4 but the plugins disappear as soon as I bump it up to php8.2

If you message me your forum URL and its FTP details, I'll debug this for you.
(2024-05-03, 06:11 AM)Laird Wrote: [ -> ]
(2024-05-02, 01:01 PM)RocketFoot Wrote: [ -> ]The 2nd line was NOT in my config.php but I reverted back to php7.4 and was able to configure the SEO settings in the Plugin page.  It is working on php7.4 but the plugins disappear as soon as I bump it up to php8.2

If you message me your forum URL and its FTP details, I'll debug this for you.

Thank you, Laird...PM sent.

Laird was able to get me fixed up!!

Quote:The problem was due to the "Thread prefixes" plugin, due to it setting the global
$config
variable to a string. I can explain in more detail if you like. Anyhow, the fix was simply to remove its declaration of
$config
as a global variable, which doesn't seem to have any side-effects as it only uses it locally anyhow.

Thank you for taking the time to get it working on PHP8.2!
Can someone help me with the configuration?

I've tried entering the code manually in htaccess.txt but even when I refresh the page I still get that wording. For the other two missing configurations?
htaccess.txt , actually you are creating a text file but you have to create .htaccess file

if you are using cPanel , this video may help you

Hello, I am getting a blank page, when navigating to the newest post on page 2 of a thread and then navigating to page 1 inside the thread.

The issue seems to be that the URL includes a "pid" in the forum home link. Once inside the thread on page 2, the link back to page 1 includes the "page=1" reference.

The URLs are as follows:

https://rockyforum.de/Thread-Rocky-Mount...d=89#pid89
https://rockyforum.de/Thread-Rocky-Mount...024?page=1

How can I fix this?
(2024-09-11, 07:17 PM)mybbuser66 Wrote: [ -> ]Hello, I am getting a blank page, when navigating to the newest post on page 2 of a thread and then navigating to page 1 inside the thread.

I can't reproduce this locally. Which version of the plugin are you running? The latest released version with fixes for PHP 8 is available on Extend:

Google SEO (Updated for PHP 8)

The latest development version on GitHub with fixes for PHP 8 can be downloaded here:

https://github.com/mybbgroup/MyBB-Google-SEO
It´s Google SEO (1.8.4), just downloaded and installed it 2 weeks ago.

I suppose it´s a configuration issue, but I am not sure. I don´t know where to look.

Here are some screenshots of the navigation process. Bottom left shows the link that will be opened after a click.


Click takes you to the thread page 2.

[attachment=47222]


The URL with "pid" and no "page".

[attachment=47225]


Last post of the thread (post id 89 in this case). Bottom left shows link to page 1 of the thread.

[attachment=47224]

result after click: a blank page.

[attachment=47223]
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27