Cannot create new f...
 
Notifications
Clear all

[Solved] Cannot create new forum access

10 Posts
3 Users
2 Reactions
558 Views
Posts: 44
Topic starter
(@mustafamohsen)
Trusted Member
Joined: 2 years ago

This is the second time I report this, and it's affecting me negatively now

On my production site (and its staging clone), the Add New Forum Access button doesn't add a new one. Rather, it edits an existing one. This screen recording is in Arabic and RTL, but wording is irrelevant, it just demonstrates that Add New Forum Access button actually edits an existing access instead of creating a new one

https://cln.sh/drc5QQGn

I disabled all existing plugins except the staging plugin and wpForo and the issue still exists. On a second hand, I created a local site with the same configuration and it went without issue. I think that it might be a database discrepancy, or something buried deep inside. The database repair tool in wpForo does not show any errors. I tried deleting & reinstalling the and nothing changed

Please help

9 Replies
dimalifragis
Posts: 2611
(@dimalifragis)
Famed Member
Joined: 5 years ago

Hi,

Just browing your site (in blind, because i don't understand anything), i see a lot of errors in my browser's console. Caching among that. What is /cache/ directory in your site? Who uses it? What plugin?

See the errors:

 

🔔 TypeError: ServiceWorker script at https://qafilah.co/push-worker.js?version=6&appKey=62fc96ab513036a7b5dcac1879ebc65c&track_inactive=false for scope https://qafilah.co/ encountered an error during installation. https://qafilah.co/wp-content/cache/min/1/storage/62fc96ab513036a7b5dcac1879ebc65c/client.js:1:6437 8" href="https://qafilah.co/wp-content/cache/min/1/storage/62fc96ab513036a7b5dcac1879ebc65c/client.js?ver=1694117268">client.js:1:64378
Firefox can’t establish a connection to the server at wss://ws.dfktv2.com/app/anyKeyUHMhqw1tev?protocol=7&client=js&version=7.1.1-beta&flash=false. https://sdk.dfktv2.com/js/app.js:2:25733 5" href="https://sdk.dfktv2.com/js/app.js?id=e4fdf4e23287abe36d96ff9fcb2f2009">app.js:2:257335
The connection to wss://ws.dfktv2.com/app/anyKeyUHMhqw1tev?protocol=7&client=js&version=7.1.1-beta&flash=false was interrupted while the page was loading. https://sdk.dfktv2.com/js/app.js:2:25733 5" href="https://sdk.dfktv2.com/js/app.js?id=e4fdf4e23287abe36d96ff9fcb2f2009">app.js:2:257335
 

🔔 TypeError: ServiceWorker script at https://qafilah.co/push-worker.js for scope https://qafilah.co/ encountered an error during installation. https://qafilah.co/wp-content/cache/min/1/storage/62fc96ab513036a7b5dcac1879ebc65c/client.js:1:6437 8" href="https://qafilah.co/wp-content/cache/min/1/storage/62fc96ab513036a7b5dcac1879ebc65c/client.js?ver=1694117268">client.js:1:64378

2 Replies
(@mustafamohsen)
Joined: 2 years ago

Trusted Member
Posts: 44

@dimalifragis Thanks!

I use WP Rocket. I have excluded the paths instructed by wpForo. Regarding the js errors, I'll check them out. Not sure about the cache directory. 

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@mustafamohsen Is "push-worker.js" part of rocket cache?

Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @mustafamohsen,

You may have JS errors in your dashboard like the examples mentioned by @dimalifragis. The errors come from caching solutions or form the theme. 

Also, this could be caused by the hosting cache or some WordPress cache. 

In any case, we cannot reproduce such issue in our websites. The Add new access button works well. I recommend check the URL when you click [Add new access] if you see &accessid=X at the end of the URL, just remove it and press enter:

5 Replies
(@mustafamohsen)
Joined: 2 years ago

Trusted Member
Posts: 44

Hi @robert 

Thank you for the details. I use WP Rocket, excluded the URLs instructed by wpForo. I do not use host level cache. I user Astra Theme, which is one of the most reliable.

The funny thing is that the URL doesn't contain the accessid parameter. it is

https://qafilah.co/wp-admin/admin.php?page=wpforo-accesses&wpfaction=wpforo_access_save_form

Yet, it loads the bottom Access. 

Please note that I tried disabling all the plugins and theme (back to TwentyTwentyTwo), yet the problem persist

I know that this seems beyond wpForo (which is probably tro). But the thing is that I can see no single issue elsewhere, front end or back end. So I appreciate some guidance on at least how to pinpoint it

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10587

@mustafamohsen,

It seems there is a row with accessid=0 in the wp_wpforo_access table in your database. Please use phpMyAdmin, browse the wp_wpforo_access table and leave a screenshot here.

 

(@mustafamohsen)
Joined: 2 years ago

Trusted Member
Posts: 44
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10587

@mustafamohsen,

I see the #6 access doesn't have access slug because it was created with Arabic title.

  1. Could you please manually update the "access" field of that table for #6 access and insert some latin phrase? Use phpMyAdmin database tool or WordPress plugin with the same name.
  2. Then go to Dashboard > wpForo > Overview and click the [Delete all caches]

 

I recommend creating accesses with English titles. This is not a public information so it doesn't need to be translated.

If we see the issue is related to the language, we will fix this in the upcoming updates.

(@mustafamohsen)
Joined: 2 years ago

Trusted Member
Posts: 44

@robert That was clever! How did I miss that 😝 

Thank you. It works perfectly now