(2024-09-11, 08:10 PM)mybbuser66 Wrote: [ -> ]It´s Google SEO (1.8.4)
The latest version (of the fork with PHP 8 updates) is 1.8.6. Please install that via the link in my last post. If that doesn't solve your problem, then let us know.
Done, works flawlessly. Thank you for your swift support!
I am so lost with this plugin. I did all steps but still not woking
PHP-fpm: 8.1
Server: Nginx
website config:
# Redirect all HTTP traffic to HTTPS for the forum
server {
listen 80;
listen [::]:80;
server_name forum.circuitbiz.com;
# Redirect all HTTP traffic to HTTPS
return 301 https://forum.circuitbiz.com$request_uri;
}
# HTTPS server block for forum.circuitbiz.com
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name forum.circuitbiz.com;
root /var/www/forum.circuitbiz.com;
index index.php;
# SSL Configuration
ssl_certificate /etc/ssl/cloudflare-cert.pem;
ssl_certificate_key /etc/ssl/cloudflare-key.pem;
ssl_protocols TLSv1.2 TLSv1.3; # Only using secure TLS protocols
ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384';
ssl_prefer_server_ciphers on;
# Log files
access_log /var/log/nginx/forum.circuitbiz.com.access.log;
error_log /var/log/nginx/forum.circuitbiz.com.error.log;
# Upload size
client_max_body_size 100M;
autoindex off;
# Handling PHP files
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# Prevent access to .htaccess and other hidden files
location ~ /\. {
deny all;
}
# Standard processing of URLs
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Additional server block configurations are as follows
# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too
location ~ /error.log {
deny all;
}
location /admin/backups {
deny all;
}
# I got this from MyBB forum to enable SEO friendly URLS
rewrite ^/([^&]*)&(.*)$ https://forum.circuitbiz.com/$1?$2 permanent;
rewrite ^/((?i)sitemap-([^./]+)\.xml)$ /misc.php?google_seo_sitemap=$2;
rewrite ^/((?i)Forum-([^./]+))$ /forumdisplay.php?google_seo_forum=$2;
rewrite ^/((?i)Thread-([^./]+))$ /showthread.php?google_seo_thread=$2;
rewrite ^/((?i)Announcement-([^./]+))$ /announcements.php?google_seo_announcement=$2;
rewrite ^/((?i)User-([^./]+))$ /member.php?action=profile&google_seo_user=$2;
rewrite ^/((?i)Calendar-([^./]+))$ /calendar.php?google_seo_calendar=$2;
rewrite ^/((?i)Event-([^./]+))$ /calendar.php?action=event&google_seo_event=$2;
# All this was copied from https://docs.mybb.com/1.8/administration/configuring-search-engine-friendly-URLs/
rewrite ^/forum-([0-9]+)\.html$ /forumdisplay.php?fid=$1;
rewrite ^/forum-([0-9]+)-page-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2;
rewrite ^/thread-([0-9]+)\.html$ /showthread.php?tid=$1;
rewrite ^/thread-([0-9]+)-page-([0-9]+)\.html$ /showthread.php?tid=$1&page=$2;
rewrite ^/thread-([0-9]+)-lastpost\.html$ /showthread.php?tid=$1&action=lastpost;
rewrite ^/thread-([0-9]+)-nextnewest\.html$ /showthread.php?tid=$1&action=nextnewest;
rewrite ^/thread-([0-9]+)-nextoldest\.html$ /showthread.php?tid=$1&action=nextoldest;
rewrite ^/thread-([0-9]+)-newpost\.html$ /showthread.php?tid=$1&action=newpost;
rewrite ^/thread-([0-9]+)-post-([0-9]+)\.html$ /showthread.php?tid=$1&pid=$2;
rewrite ^/post-([0-9]+)\.html$ /showthread.php?pid=$1;
rewrite ^/announcement-([0-9]+)\.html$ /announcements.php?aid=$1;
rewrite ^/user-([0-9]+)\.html$ /member.php?action=profile&uid=$1;
rewrite ^/calendar-([0-9]+)\.html$ /calendar.php?calendar=$1;
rewrite ^/calendar-([0-9]+)-year-([0-9]+)\.html$ /calendar.php?action=yearview&calendar=$1&year=$2;
rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ /calendar.php?calendar=$1&year=$2&month=$3;
rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ /calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4;
rewrite ^/calendar-([0-9]+)-week-(n?[0-9]+)\.html$ /calendar.php?action=weekview&calendar=$1&week=$2;
rewrite ^/event-([0-9]+)\.html$ /calendar.php?action=event&eid=$1;
}
Under Server and
Optimization Options,
Enable search engine friendly URLs? is enabled.
Should I do this?!
Under
Google SEO, only
Enable Google SEO URL is enabled.
And still, URLs still show up as
https://forum.circuitbiz.com/thread-8.html
Why? What is missing?
Thanks
(2024-11-10, 07:50 AM)giorgi3092 Wrote: [ -> ]I am so lost with this plugin. I did all steps but still not woking
PHP-fpm: 8.1
Server: Nginx
website config:
# Redirect all HTTP traffic to HTTPS for the forum
server {
listen 80;
listen [::]:80;
server_name forum.circuitbiz.com;
# Redirect all HTTP traffic to HTTPS
return 301 https://forum.circuitbiz.com$request_uri;
}
# HTTPS server block for forum.circuitbiz.com
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name forum.circuitbiz.com;
root /var/www/forum.circuitbiz.com;
index index.php;
# SSL Configuration
ssl_certificate /etc/ssl/cloudflare-cert.pem;
ssl_certificate_key /etc/ssl/cloudflare-key.pem;
ssl_protocols TLSv1.2 TLSv1.3; # Only using secure TLS protocols
ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384';
ssl_prefer_server_ciphers on;
# Log files
access_log /var/log/nginx/forum.circuitbiz.com.access.log;
error_log /var/log/nginx/forum.circuitbiz.com.error.log;
# Upload size
client_max_body_size 100M;
autoindex off;
# Handling PHP files
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# Prevent access to .htaccess and other hidden files
location ~ /\. {
deny all;
}
# Standard processing of URLs
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Additional server block configurations are as follows
# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too
location ~ /error.log {
deny all;
}
location /admin/backups {
deny all;
}
# I got this from MyBB forum to enable SEO friendly URLS
rewrite ^/([^&]*)&(.*)$ https://forum.circuitbiz.com/$1?$2 permanent;
rewrite ^/((?i)sitemap-([^./]+)\.xml)$ /misc.php?google_seo_sitemap=$2;
rewrite ^/((?i)Forum-([^./]+))$ /forumdisplay.php?google_seo_forum=$2;
rewrite ^/((?i)Thread-([^./]+))$ /showthread.php?google_seo_thread=$2;
rewrite ^/((?i)Announcement-([^./]+))$ /announcements.php?google_seo_announcement=$2;
rewrite ^/((?i)User-([^./]+))$ /member.php?action=profile&google_seo_user=$2;
rewrite ^/((?i)Calendar-([^./]+))$ /calendar.php?google_seo_calendar=$2;
rewrite ^/((?i)Event-([^./]+))$ /calendar.php?action=event&google_seo_event=$2;
# All this was copied from https://docs.mybb.com/1.8/administration/configuring-search-engine-friendly-URLs/
rewrite ^/forum-([0-9]+)\.html$ /forumdisplay.php?fid=$1;
rewrite ^/forum-([0-9]+)-page-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2;
rewrite ^/thread-([0-9]+)\.html$ /showthread.php?tid=$1;
rewrite ^/thread-([0-9]+)-page-([0-9]+)\.html$ /showthread.php?tid=$1&page=$2;
rewrite ^/thread-([0-9]+)-lastpost\.html$ /showthread.php?tid=$1&action=lastpost;
rewrite ^/thread-([0-9]+)-nextnewest\.html$ /showthread.php?tid=$1&action=nextnewest;
rewrite ^/thread-([0-9]+)-nextoldest\.html$ /showthread.php?tid=$1&action=nextoldest;
rewrite ^/thread-([0-9]+)-newpost\.html$ /showthread.php?tid=$1&action=newpost;
rewrite ^/thread-([0-9]+)-post-([0-9]+)\.html$ /showthread.php?tid=$1&pid=$2;
rewrite ^/post-([0-9]+)\.html$ /showthread.php?pid=$1;
rewrite ^/announcement-([0-9]+)\.html$ /announcements.php?aid=$1;
rewrite ^/user-([0-9]+)\.html$ /member.php?action=profile&uid=$1;
rewrite ^/calendar-([0-9]+)\.html$ /calendar.php?calendar=$1;
rewrite ^/calendar-([0-9]+)-year-([0-9]+)\.html$ /calendar.php?action=yearview&calendar=$1&year=$2;
rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ /calendar.php?calendar=$1&year=$2&month=$3;
rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ /calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4;
rewrite ^/calendar-([0-9]+)-week-(n?[0-9]+)\.html$ /calendar.php?action=weekview&calendar=$1&week=$2;
rewrite ^/event-([0-9]+)\.html$ /calendar.php?action=event&eid=$1;
}
Under Server and Optimization Options, Enable search engine friendly URLs? is enabled. Should I do this?!
Under Google SEO, only Enable Google SEO URL is enabled.
And still, URLs still show up as https://forum.circuitbiz.com/thread-8.html
Why? What is missing?
Thanks
I fixed it myself. I had to press on apply changes to the core files from the plugins page. And disable built in SEO friendly URLS.
I updated to the last version of Google SEO, the one compatible with PHP 8, and I have multiples errors in ACP - Configuration - PLugins. I reverted back to PHP 7.4 because of other plugins but the errors are the same, excepting the PHP version written in the error message (8.3 or 7.4).
Did you experienced a problem like this? I really appreciate Google SEO and it's impossible to live without!
(2025-03-26, 05:51 PM)Lyvyoo Wrote: [ -> ]I updated to the last version of Google SEO, the one compatible with PHP 8, and I have multiples errors in ACP - Configuration - PLugins. I reverted back to PHP 7.4 because of other plugins but the errors are the same, excepting the PHP version written in the error message (8.3 or 7.4).
Did you experienced a problem like this? I really appreciate Google SEO and it's impossible to live without!
This sounds like the Thread Prefixes plugin bug described (with solution)
here.
P.S. Is
this still your board?
Thanks! Yes, it's my forum

The biggest coffee community from Romania!
I have disabled Thread prefixes for years, never used, but I'm able to see the plugin in ACP, with the side note in red "Plugin Disabled".
However, I would try to verify the affected templates if I had some details. So, from the post linked, the user helped by you said:
"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."
In other words do I have to "remove its declaration of variable string" named $config ? Where to search exactly for "$config" and delete?
if you really have deactivated the plugin and if you don't use it, you could delete the plugin-file in inc/plugins for this plugin
plugin disabled? in red?
oh I see, in my testboard this shows up too
this is a message from the coder
it has nothing to do with activating/deactivating plugin
is it in the sector "active plugins" or "inactive plugins"?
if it is inactive, remove file like written above
if it is active and you don't want to use it, deactivate and delete
if you are using it, you take a look at the inc/plugins/tpref.php
in ine 15 you'll find global $mybb, $config;
change to: global $mybb;
It worked, I deleted tpref.php and now I have no errors!
Thanks a lot!
(2025-03-27, 11:05 AM)Lyvyoo Wrote: [ -> ]Yes, it's my forum
The biggest coffee community from Romania!
Nice! Enjoy your cuppas with your Romanian buddies. ☕ I'd be a coffee drinker too if I didn't find it too bitter.
I'm glad you got your problem sorted with bv64's help. 👍