Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: layer on July 19, 2022, 09:12:20 AM

Title: "you do not have access to this page!"
Post by: layer on July 19, 2022, 09:12:20 AM
hello,

"yesterday" all was fine, today I get "you do not have access to this page!"  :o

anyone can help where to look first?

SMF 2.1.2

thank you
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 19, 2022, 09:16:54 AM
Well, what page are you trying to visit?
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 09:15:50 AM
Quote from: Arantor on July 19, 2022, 09:16:54 AMWell, what page are you trying to visit?

none works
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 10:00:55 AM
I do need a little more detail here.
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 10:07:39 AM
Quote from: Arantor on July 20, 2022, 10:00:55 AMI do need a little more detail here.

tell me what you need.
the last thing I have done, was the 2.1.2 update(no errors), I don't touch settings for "years".
i don't have any mod or plugin
Title: Re: "you do not have access to this page!"
Post by: Diego Andrés on July 20, 2022, 10:11:57 AM
Perhaps a screenshot
Can you access the admin to check the errors log?
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 10:12:42 AM
Quote from: layer on July 20, 2022, 10:07:39 AM
Quote from: Arantor on July 20, 2022, 10:00:55 AMI do need a little more detail here.

tell me what you need.
the last thing I have done, was the 2.1.2 update(no errors), I don't touch settings for "years".
i don't have any mod or plugin

Like... what page were you trying to go to! The page must have a URL...
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 10:17:21 AM
screenshot_20220720_151541.png
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 10:29:13 AM
That message isn't in the code for an unmodified SMF 2.1.2.

If you really have no mods, grab the large upgrade package for 2.1.2, unzip it on your computer then upload all the files over the top of what's on the server.
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 10:49:58 AM
Quote from: Arantor on July 20, 2022, 10:29:13 AMThat message isn't in the code for an unmodified SMF 2.1.2.

If you really have no mods, grab the large upgrade package for 2.1.2, unzip it on your computer then upload all the files over the top of what's on the server.

now I'm worried... it's working(after the upload)...!
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 11:14:13 AM
\sources\subs.php

defined('ABSPATH') or die("you do not have access to this page!");
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 12:01:41 PM
That's not stock SMF.

ABSPATH is a WordPress piece of code.
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 01:03:21 PM
possibly a hack?
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 01:29:13 PM
Did you put the SMF inside a subdirectory of a WordPress? If so, more likely a bad WP security plugin.
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 04:30:01 PM
Quote from: Arantor on July 20, 2022, 01:29:13 PMDid you put the SMF inside a subdirectory of a WordPress? If so, more likely a bad WP security plugin.

no, it's a sub but of a HTML page
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 04:37:20 PM
What you mean "it's a sub"? A subfolder? Subdomain? Something else?

Seriously, though, ABSPATH is the hallmark of WordPress or a WordPress plugin gone rogue.
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 04:42:00 PM
Quote from: Arantor on July 20, 2022, 04:37:20 PMWhat you mean "it's a sub"? A subfolder? Subdomain? Something else?

Seriously, though, ABSPATH is the hallmark of WordPress or a WordPress plugin gone rogue.

subdirectory.

There is no other script in this cpanel account.
Title: Re: "you do not have access to this page!"
Post by: Arantor on July 20, 2022, 04:51:47 PM
And there's nothing in the parent folder?

The reason for my skepticism is that people have a curious habit of going 'oh, actually there is this thing...' when they've been adamant there wasn't anything.

I'm just suspicious that an SMF with no mods suddenly got code hijacked into it from WordPress on an account that apparently has no WordPress (when I've *absolutely* seen WordPress plugins do this)
Title: Re: "you do not have access to this page!"
Post by: layer on July 20, 2022, 05:14:17 PM
Quote from: Arantor on July 20, 2022, 04:51:47 PMAnd there's nothing in the parent folder?

The reason for my skepticism is that people have a curious habit of going 'oh, actually there is this thing...' when they've been adamant there wasn't anything.

I'm just suspicious that an SMF with no mods suddenly got code hijacked into it from WordPress on an account that apparently has no WordPress (when I've *absolutely* seen WordPress plugins do this)

i'm sure that there is no other script, just this https://html5up.net/aerial
Title: Re: "you do not have access to this page!"
Post by: live627 on July 20, 2022, 11:22:15 PM
How did you install SMF? Softaculous? The code that you posted assumes that SMF and WordPress are working together.
Title: Re: "you do not have access to this page!"
Post by: Oldiesmann on July 21, 2022, 11:41:26 PM
Softaculous just installs a regular copy of SMF - it doesn't modify the code at all.
Title: Re: "you do not have access to this page!"
Post by: Steve on August 16, 2022, 05:08:46 AM
@layer - where do you stand on this?
Title: Re: "you do not have access to this page!"
Post by: layer on August 18, 2022, 07:11:26 AM
Quote from: Steve on August 16, 2022, 05:08:46 AM@layer - where do you stand on this?

like I said, I reuploaded complete package and that's all.
Title: Re: "you do not have access to this page!"
Post by: Steve on August 18, 2022, 07:24:00 AM
Meaning what? Are you still having this problem?
Title: Re: "you do not have access to this page!"
Post by: layer on August 18, 2022, 07:27:39 AM
Quote from: Steve on August 18, 2022, 07:24:00 AMMeaning what? Are you still having this problem?

the rewrite fixed the problem.
Title: Re: "you do not have access to this page!"
Post by: Steve on August 18, 2022, 09:03:40 AM
Cool beans. Marking solved then.