Daily Lucky Numbers:
7
12
14
33
39
48

Recent posts

#1
You area very clever man.

Since changing to the new host, when a game is played the submit button, if there was one, took you straight to the forums main page. So I followed your instructions above and added the .htaccess file to the domain, then low and behold I can now score games again.

Thank you very much
#2
SMF Arcade Support + Plugins / Re: Arcade has gone
Last post by Dave - Today at 03:53:39 AM
    Quote from: Chen Zhen on August 06, 2022, 11:04:43 PMThere are several things that can cause issues as you describe.

    • Mod-Security should be disabled
    • Forum paths & directories should be checked/adjusted
    • Arcade paths & directories should be checked/adjusted
    • Forum cache settings may need to be adjusted
    • Any improper JavaScript (showing errors in the console) from other sources may cause conflicts
    • Server config file may be necessary (ensure it exists after creation): Admin -> Arcade Maintenance -> Server Config
    • Improper SSL (HTTPS) settings
    • Improperly configured server config file ( ie. .htaccess ) in your main forum directory
    • forum resides in a sub-directory that may need a server config file in the parent directory

    There's also another type of cache that people sometimes install for the server itself but it's name slips my mind at the moment. I don't think you have that installed though because it causes problems with SMF itself just like Mod-Security.


    • Mod-Security should be disabled
    Now disabled though .htaccess
    • Forum paths & directories should be checked/adjusted
    Checked with repair settings. The only issues here were change cookie and Queryless URLs: was on now it's off. All other paths correct
    • Arcade paths & directories should be checked/adjusted
    All correct
    • Forum cache settings may need to be adjusted
    All correct
    • Any improper JavaScript (showing errors in the console) from other sources may cause conflicts
    None evident
    • Server config file may be necessary (ensure it exists after creation): Admin -> Arcade Maintenance -> Server Config
    Cannot be seen
    • Improper SSL (HTTPS) settings
    All correct
    • Improperly configured server config file ( ie. .htaccess ) in your main forum directory
    This was causing the scoring issue but not the arcade gone one
    • forum resides in a sub-directory that may need a server config file in the parent directory
    AFAIK forum not is sub directory


    I looked at all of those and as you can see there was very little wrong. However I have managed to get the arcade back and to do that I went to phpmyadmin and looked at my settings table. There towards the end is a variable 'arcadeEnabled' which when I arrived was on '0' after changing that to '1' miraculously the arcade appeared.

    Now it seems to me that this must be an error with the arcade coding as surely even if the arcade was disabled in admin so it can't be seen on the site, it should still be seen in admin.

    I have now played the 'Tire Toss' game and it scores OK so ruffle is working OK. It's probably the mod_security or the .htaccess file you mentioned that messed it up in the first place.

    Thanks for the check list of what to search for. I'll leave the other bit to you ;)

    You see below the screenshots I took along the way

    [/list]
    #3
    If your SMF forum resides in a sub-directory server path then you may have problems saving scores for some games.
    In this scenario, a game may redirect to the parent directory of your forum path whilst showing a 403 path error.
    Your solution is to adjust your server config or add a server config file in the main server path.

    ie. for Apache
    Main website url path is: https://mydomain.com
    SMF url path is: https://mydomain.com/forum

    Use FTP or your terminal to create a .htaccess file in your main server path for "mydomain.com" (not your SMF path but possibly its parent path)

    htaccess possible contents:
    RewriteEngine on
    RewriteCond %{QUERY_STRING} act=Arcade
    RewriteCond %{REQUEST_URI} !forum
    RewriteRule (.*) https://%{HTTP_HOST}/forum/$1 [NC,L]
    #4
    SMF Arcade Support + Plugins / Re: Arcade has gone
    Last post by Chen Zhen - August 06, 2022, 11:04:43 PM

    There are several things that can cause issues as you describe.

    • Mod-Security should be disabled
    • Forum paths & directories should be checked/adjusted
    • Arcade paths & directories should be checked/adjusted
    • Forum cache settings may need to be adjusted
    • Any improper JavaScript (showing errors in the console) from other sources may cause conflicts
    • Server config file may be necessary (ensure it exists after creation): Admin -> Arcade Maintenance -> Server Config
    • Improper SSL (HTTPS) settings
    • Improperly configured server config file ( ie. .htaccess ) in your main forum directory
    • forum resides in a sub-directory that may need a server config file in the parent directory

    There's also another type of cache that people sometimes install for the server itself but it's name slips my mind at the moment. I don't think you have that installed though because it causes problems with SMF itself just like Mod-Security.
    #5
    SMF Arcade Support + Plugins / Arcade has gone
    Last post by Dave - August 06, 2022, 05:49:37 PM
    It all started so well. I transferred the site files to the new host and uploaded the games etc and most of it was working.

    Then earlier today suddenly some games in the arcade decided to stop scoring and displaying 'Oops, looks like the page is lost at the endsubmit' which is the hosts 403 error.

    Then Ruffle decided to stop working and a game, Tiretoss, that I tested and got a score on would not work having a Ruffle error screen where the game should be.

    I then checked that all the hooks were there, which they were, then I thought I'd update Ruffle from the Github as the link to your server timed out. The update worked ok but the Tiretoss would still not play.

    So my last resort was to disable the arcade in it's settings and thought I'd have a look tomorrow. But I cannot leave it so I uninstalled Arcade via the Package manager deleted the file and then checked all the templates it writes to so make sure all traces of it were gone.

    They were all gone, all the hooks had been removed also.

    So I then reinstalled the Arcade with the latest version and although it shows in the package manager as installed I cannot see it in Admin. The 12 hooks have been installed and all the folders associated with it are there to but nothing can be seen in admin.

    It's late here so I'm going to bed

    So the question is what do you think the issue might be?

    regards
    #6
    Releases & Version Updates / Re: SMF Banner Bar
    Last post by Dave - August 04, 2022, 01:57:56 PM
    Thanks Chen
    #7
    Releases & Version Updates / Re: SMF Banner Bar
    Last post by Chen Zhen - August 04, 2022, 12:24:20 PM
    Version 1.2 is now available.

    Changes:
    + Added: option to disable corner icons
    + Added: option to choose "transparent" background
    ! Fixed: Banner Bar set to not display in admin due to possible token conflict


    I found that sometimes the banner bar html can cause a problem with the SMF 2.1 token validation within the admin section.
    For now the solution I came up with is to disable the Banner Bar in the admin section.
    This means to test it, you'll have to navigate to the forum.
    Until I figure out how to stop it from possibly messing with the admin token, this will allow the admin to function properly.
    #8
    SMF Arcade Support + Plugins / Re: New errors, some with 2.6....
    Last post by Dave - July 30, 2022, 01:43:08 PM
    Thank you Chen

    Did as you said. Installed 2.6.9.1 and then uploaded games in PHP7.4 and ran OK.

    Upgraded to PHP8.0 and installed another game and playing all OK no errors at all.
    #9
    SMF Arcade Support + Plugins / Re: New errors, some with 2.6....
    Last post by Chen Zhen - July 30, 2022, 10:30:27 AM
    Uninstall Arcade 2.6.9 & delete it.
    Install the attachment (Arcade 2.6.9.1), change your forum back to PHP 8.0+ & let me know if it functions properly.

    Thanks.

    Note: The attachment was removed. Please download the Arcade from the download section for these changes.
    #10
    SMF Arcade Support + Plugins / Re: New errors, some with 2.6....
    Last post by Chen Zhen - July 30, 2022, 09:56:21 AM

    I just updated the Arcade a few days ago.
    When you were using PHP 8.0 did you have Arcade 2.6.9 installed or were you still using Arcade 2.6.8 ??

    Now that you have version 2.6.9 installed, attempt to use PHP 8.0 again & let me know if it still throws errors.