News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

url issue

Started by Dr Web, October 24, 2021, 01:11:40 PM

Previous topic - Next topic

Dr Web

Hi guys and girls. I need help urgent.

I installed a new smf forum about a week ago, installed a few mods, including pretty urls. Yesterday I installed this Optimus mod. Everything was working fine.

A few minutes ago, I noticed that a few categories/boards were not showing the correct url. For example the General Discussion standard category/board that already comes with smf when we install it, I changed to another name a few days ago. However, it was still showing as general discussion in the URL.

A couple other categories created with a name that I changed right after to another name I found it was better, were also showing the first chosen name.   

Example: the URL https://www.myforum.com/new-board-name was still showing https://www.myforum.com/general-discussion

First I thought it was a browser cache problem, so I cleaned the cookies and cache. The problem was still there.

So I thought I need to run the manutention on pretty urls panel. I did it, and now I have a blank page.

I see the url of my site on my browser but I don't see anything. I have a white page.

As I read that this mod may conflict with pretty urls mod, it was probably what happened?

I looked at my server for errors, and no errors there.

I see this:

documentation.
Latest web server error log messages:
No recent web server errors exist for your domain: XXXXXXXXXXXXX

Latest suEXEC event log messages:
No recent suEXEC events exist for your domain:XXXXXXXXXXXXX

I also noticed something weird since several days. Every time I want to change something in the forum admin panel, I need to try several times until it is accepted. I click the button and stays the same. Then I wait 10 seconds and try again, and the same. After a few tryes, sometimes after one or two minutes, for some reason it is finally accepted. I think this has to do with the changed categories not being changed in the URL.

I don't know why this is happening, but I am telling you so maybe someone knows what it is.

I am running SMF 2.0.18, core theme, and these are my server settings:

Database server:
    Server: Localhost via UNIX socket
    Server type: MariaDB
    Server connection: SSL is not being used Documentation
    Server version: 10.3.31-MariaDB-cll-lve - MariaDB Server
    Protocol version: 10
    User: xxxxxxxxxxxxxxxxx
    Server charset: xxxxxxxxxxxxxxxx

Web server:
    cpsrvd 11.98.0.9
    Database client version: libmysql - 5.6.43
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 7.3.30

phpmyAdmin:
    Version information: 4.9.7

This is the code generated today on my .htaccess file exactly when I ran the manutention on pretty urls panel:

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: October 24, 2021, 16:56

RewriteEngine on
RewriteBase /

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

More info: I have this Optimus mod installed, and also pretty urls, smfcontactpage, likeposts, StopSpammer_v2_4_0, ads management and WYSIWYGquickreply. 
 

Any help in solving this big problem will be greatly appreciated  ;D


Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

Quote from: Dr Web on October 24, 2021, 01:11:40 PMHi guys and girls. I need help urgent.

I installed a new smf forum about a week ago, installed a few mods, including pretty urls. Yesterday I installed this Optimus mod. Everything was working fine.

A few minutes ago, I noticed that a few categories/boards were not showing the correct url. For example the General Discussion standard category/board that already comes with smf when we install it, I changed to another name a few days ago. However, it was still showing as general discussion in the URL.

A couple other categories created with a name that I changed right after to another name I found it was better, were also showing the first chosen name. 

Example: the URL https://www.myforum.com/new-board-name was still showing https://www.myforum.com/general-discussion

First I thought it was a browser cache problem, so I cleaned the cookies and cache. The problem was still there.

So I thought I need to run the manutention on pretty urls panel. I did it, and now I have a blank page.

I see the url of my site on my browser but I don't see anything. I have a white page.

As I read that this mod may conflict with pretty urls mod, it was probably what happened?

I looked at my server for errors, and no errors there.

I see this:

documentation.
Latest web server error log messages:
No recent web server errors exist for your domain: XXXXXXXXXXXXX

Latest suEXEC event log messages:
No recent suEXEC events exist for your domain:XXXXXXXXXXXXX

I also noticed something weird since several days. Every time I want to change something in the forum admin panel, I need to try several times until it is accepted. I click the button and stays the same. Then I wait 10 seconds and try again, and the same. After a few tryes, sometimes after one or two minutes, for some reason it is finally accepted. I think this has to do with the changed categories not being changed in the URL.

I don't know why this is happening, but I am telling you so maybe someone knows what it is.

I am running SMF 2.0.18, core theme, and these are my server settings:

Database server:
    Server: Localhost via UNIX socket
    Server type: MariaDB
    Server connection: SSL is not being used Documentation
    Server version: 10.3.31-MariaDB-cll-lve - MariaDB Server
    Protocol version: 10
    User: xxxxxxxxxxxxxxxxx
    Server charset: xxxxxxxxxxxxxxxx

Web server:
    cpsrvd 11.98.0.9
    Database client version: libmysql - 5.6.43
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 7.3.30

phpmyAdmin:
    Version information: 4.9.7

This is the code generated today on my .htaccess file exactly when I ran the manutention on pretty urls panel:

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: October 24, 2021, 16:56

RewriteEngine on
RewriteBase /

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

More info: I have this Optimus mod installed, and also pretty urls, smfcontactpage, likeposts, StopSpammer_v2_4_0, ads management and WYSIWYGquickreply. 
 

Any help in solving this big problem will be greatly appreciated  ;D




I moved your post out of the optimus mod support thread and into it's own support thread as this is (partly) a pretty urls issue

in your admin under forum go to boards for each board that you renamed click on pretty urls
put a new name that you want to use and click add, after it adds it click on Make primary after it is primary you can delete the old url name

you may need to run pretty url maintenance afterwards, I don't remember
in your admin under configuration go to pretty urls
click on the 3rd button (maintenance) then click on Run maintenance tasks

as for a white page?????? there should be an error logged in your server errors

as for having to set settings a few times before they take, sounds like you have caching on or your server has some sort of caching set

Dr Web

Like I said, I can't even see the site, so I can't access the admin panel to do what you are suggesting.

If I would be able to delete the url after, I would post the url of my forum here so you could see the blank/white page, but, the problem is that after some time I can't anymore modify the post to delete the url.

Just let me know where I can see the errors, and I will take a look.

I looked under Metrics --> Errors and Advanced --> Error pages

There is some other place to look for errors?
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

check your host and see if you've gone over any of your resource limits, I think this is what caused the white page, if so ask if they can bump that resource up

Dr Web

The forum is brand new still no traffic, so that is impossible.

Here are the actual server stats:

Disk Usage
46.14 MB / 10 GB (0.45%)
   
File Usage
2,069 / 500,000 (0.41%)
   
MySQL® Disk Usage
419.47 KB / 9.96 GB (0%)
   
Bandwidth
9.38 MB / ∞
   
Addon Domains
0 / ∞
   
Subdomains
0 / ∞
   
Aliases
0 / ∞
   
Email Accounts
0 / ∞
   
Mailing Lists
0 / ∞
   
Autoresponders
0 / ∞
   
Forwarders
0 / ∞
   
Email Filters
0 / ∞
   
FTP Accounts
0 / ∞
   
MySQL® Databases
1 / ∞
   
CPU Usage
0 / 100 (0%)
   
Entry Processes
0 / 20 (0%)
   
Physical Memory Usage
0 bytes / 1 GB (0%)
   
IOPS
0 / 10,240 (0%)
   
I/O Usage
0 bytes/s / 50 MB/s (0%)
   
Number of Processes
0 / 50 (0%) 


The server status are also all ok, everything checked green.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

what is the inode usage? this is most likely the resource that went over and your host may bump it up a bit
depending on your host and seeing all of the other "unlimited" specs, most likely they give very little inode usage

if everything was working fine before you ran the maintenance mod, most likely some resource somewhere on your server/hosting account was hit

not saying that it still isn't a mod issue or conflict but most likely a resource limit reached

Dr Web

Inode usage is the File Usage in my post above.

I used only 2,069 from 500,000. I am with CrocWeb and so far I am very happy with everything. Some other hosts give only 100,000 inode usage.

File Usage
2,069 / 500,000 (0.41%)


About the cache, my server has LiteSpeed Web Cache Manager, but I don't know if it is installed by default or it is there if i want to use and still need to install in my site.

Anyway I have a lscache folder on my Home directory, but, it is empty, and a cache folder on my public_html folder, and that one has about 30 files with today's date.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

Update.

I contacted my Host asking if they see errors on their side, and this was the response.

Hello,

I do not see any errors at our end that would point to where the issue might be in the website/script. If you are not sure what modifications on the forum caused the issue then you can use "Acronis Backup" in your cPanel account to restore the database/files to the last restore point when the website was working properly.

We do not have any caching enabled on the server by default. Try using a different browser and delete the browser's cache/history.


Do you know how to use this Acronis Backup?

When I click the Acronis Backup button on cPanel I see Backups and Recovery Operations Log. If I click the last backup before the white page, when the site was working well, it loads for about one minute, and then I have two choices(two buttons).

Export the account or Recover the account

Below the buttons I have the word Types and under it 5 links

Domains
Files
Databases
Mailboxes
Mail forwarders

Anyone know what I need to do?



 
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

still seems odd that everything worked fine until you ran the maintenance mode, and then got the white page, which leads more towards a resource issue

I would do a back up of your current files and db just in case, yes even though you're getting the white screen

and then I would use the restore the database and restore the files from before the white page showed up

Dr Web

I understand why you thinking it was a resource issue, but, the truth is that everything was ok in the server, with no errors there, and also on the Admin panel.

I have no idea what caused the white screen.

I did just that. I restored the database and the files using the Acronis Backup and the site is back. Then I uninstalled the pretty urls mod, installed it again, and everything is working fine. So this topic is solved.

Thanks 
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

I marked this topic as solved, but, it is not.

Both plugins are installed and working well, except the problem with the General Discussion board URL.

All other URLs are well rewritten, except this one.

I can create any Board with any other name for example Lounge or Test or any other name, and immediately the URL shows https://www.myforum.com/lounge or https://www.myforum.com/test.

But every time I try to create a General Discussion board, even in my language that I've installed(not in English), the URL looks like this: https://www.myforum.com/category/index.php?board=21.

I tried several times to create it, and, the url is never rewritten.

To try to solve the problem, I tried to change the name of the Board Test or Lounge to General Discussion, and it changes on the Board, but, not in the URL, so the Board https://www.myforum.com/category/general-discussion, points to the URL https://www.myforum.com/category/test.

The only reason is some piece of code that already comes with the SMF, that for some reason doesn't let to rewrite the General Discussion board that already comes with the new installation of SMF.

I am sure you guys that made SMF know what it is, and what I need to change to solve this problem.

Thanks
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

Quote from: Dr Web on November 01, 2021, 11:17:13 AMI marked this topic as solved, but, it is not.

Both plugins are installed and working well, except the problem with the General Discussion board URL.

All other URLs are well rewritten, except this one.

I can create any Board with any other name for example Lounge or Test or any other name, and immediately the URL shows https://www.myforum.com/lounge or https://www.myforum.com/test.

But every time I try to create a General Discussion board, even in my language that I've installed(not in English), the URL looks like this: https://www.myforum.com/category/index.php?board=21.

I tried several times to create it, and, the url is never rewritten.

To try to solve the problem, I tried to change the name of the Board Test or Lounge to General Discussion, and it changes on the Board, but, not in the URL, so the Board https://www.myforum.com/category/general-discussion, points to the URL https://www.myforum.com/category/test.

The only reason is some piece of code that already comes with the SMF, that for some reason doesn't let to rewrite the General Discussion board that already comes with the new installation of SMF.

I am sure you guys that made SMF know what it is, and what I need to change to solve this problem.

Thanks

I think you forgot about this bit from my first reply
Quote from: shadav on October 24, 2021, 01:35:53 PM
Quote from: Dr Web on October 24, 2021, 01:11:40 PMA few minutes ago, I noticed that a few categories/boards were not showing the correct url. For example the General Discussion standard category/board that already comes with smf when we install it, I changed to another name a few days ago. However, it was still showing as general discussion in the URL.

A couple other categories created with a name that I changed right after to another name I found it was better, were also showing the first chosen name. 

Example: the URL https://www.myforum.com/new-board-name was still showing https://www.myforum.com/general-discussion

in your admin under forum go to boards for each board that you renamed click on pretty urls
put a new name that you want to use and click add, after it adds it click on Make primary after it is primary you can delete the old url name

you may need to run pretty url maintenance afterwards, I don't remember
in your admin under configuration go to pretty urls
click on the 3rd button (maintenance) then click on Run maintenance tasks

any time that you rename a board you will need to then change it's pretty url to match the new board name (or whatever you want it to be) then set your new name to primary and then delete the old name

Dr Web

#12
I tried this too, and you can't change the URL on pretty URLS. You can only change the last part of the URL.

When you click the button to change the URL, and insert the complete URL, then you have something like this:
https://www.myforum.com/httpswww-myforum-comgeneral-discussion
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

you don't need to add the full url just the end part that you want
so you'd just add
general-discussion
You cannot view this attachment.

Kindred

this would appear to be a pretty urls question -- not an issue with the core product
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dr Web

That was the first thing I tried, and I did it maybe 30 times, and when I click the button, nothing happens.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

Quote from: Kindred on November 01, 2021, 12:38:31 PMthis would appear to be a pretty urls question -- not an issue with the core product

If it is a pretty urls question, why any other board url can be rewritten, only this one with the exact name "general discussion" can't?

It's obvious it is related to the code because this precise board already comes with the software, pre-installed.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

this is still a pretty urls question/issue
nothing to do with smf core code

the only reason I didn't move it to the pretty url support thread was the white screen issue

all other issues are pretty url related (white screen may have been too)

is any of your boards already using the general-discussion?
after adding the general-discussion to the board you want, did you then press on the Make Primary and delete the old name that you didn't want?

Dr Web

Sorry but it is not pretty urls question. Any, I repeat, any other board created with any other name immediately gets a correct URL, without the need of changing in pretty urls.

I have the default language, English installed, and my language, and I tried now to create a board with the name General Discussion in a language I don't have installed, Spanish, and immediately got a correct URL: https://www.myforum.com/category/discusion-general

If you don't believe me, I can give you access to my Admin Panel and you can see for yourself.

Pretty URLS is working perfectly, so this can be only a code problem.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

shadav

yes you are correct when you create a board, pretty url automatically assigns it the name of the board
however if you rename a board, as you mentioned earlier, then you must go and manually change the pretty url of the board and set your manually added pretty url to primary, then delete the old pretty url

if you try to add 2 boards with the same name you will notice that pretty url will then automatically assign the second one with a number at the end since there's already a board with that name (even if the pretty url is not set to primary but is still listed under that board, as you can have more than 1 pretty url set to each board)

and yes this is a pretty url issue as core smf code does not rewrite urls in this manor

if you like, you can pm me with a link to your forum and an admin log in and what it is exactly that you are wanting to do/to rename etc

also have you fixed the white screen issue? have you been able to run the pretty url maintenance without issue?

have you fixed the issue with settings not saving on first try and having to reset them a few times before they save?

Advertisement: