News:

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

Main Menu

applying smf patches...php not acceptable?

Started by airdave, January 11, 2019, 09:19:51 AM

Previous topic - Next topic

airdave

Lets start this with "I am not tech savvy and may appear really really dumb at any moment..."

I finally got around to applying update patches today
...installed one after another, the suggested updates, to smf.
Easy peesy.
Now at version 2.0.13

When I tried to apply 2.0.14, I got an error stating that my php was not 5.3 as it needed to be.
I checked the ph in my aquarium, its fine.

I don't know what a php is....or how to change it.

Heres a couple of screengrabs with info:
first is the basics for my forum
and second is the php screen at my cpanel (another place where I am lost! lol)

Can anyone explain some of this and what I should (if anything)? Thanks.


vbgamer45

It would be in cpanel an option to change your PHP version you would need to be on at least php 5.4
Or if you unsure try contact your web hosting company and see if you can upgrade to php 5.4
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

airdave

when I went into cPanel, I saw a php section, which I clicked on...thats the screengrab I showed above.
I don't see anything else...but I'll go hunt around a little more.

Illori

that is your database management tool. you need to reach out to your host.

airdave

okay, I went deeper and found the page where you update the php (I think)
screengrab below.

lol forgive me...it might as well be written in chinese.
all I see is the word "caution" and I panic. lol

I hear your suggestion (contact the host)....or can I fix it here?
I think I am supposed to choose 5.4 default and click update...right?

your help is really appreciated.

Aleksi "Lex" Kilpinen

That should be it, 5.6 would probably be cool. :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

airdave

Just to confirm (can you hear my trepidation?)..

I'm going to leave it at 5.4 default and click the Update button...right?
This is not going to destroy my forum?
lol

and I am concerned about choosing the 5.6 option...since it says "caution"

vbgamer45

Nah won't your hurt forum you are on SMF 2.0.13 you can move up to 5.6
Then upgrade to SMF 2.0.15 then move to PHP 7.1
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

airdave

great...forum is gone

http://papermodelforum.com/

I opted for the stable 5.6 and clicked update.
Now I can't connect to the forum.
I went back into cPanel and changed it to 5.4 default and clicked update.
Still no forum.

What has happened?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vbgamer45

I think the issue is you are including SMF in an iframe. which the new SMF versions prevent

You can either do a redirect intead of an iframe for http://papermodelforum.com/

Or remove this code from your forum's index.php file

// Emit some headers for some modicum of protection against nasties.
if (!headers_sent())
{
// Future versions will make some of this configurable. This is primarily a 'safe' configuration for most cases for now.
header('X-Frame-Options: SAMEORIGIN');
header('X-XSS-Protection: 1');
header('X-Content-Type-Options: nosniff');
}


Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

airdave

LOL you are speaking greek.
I have no idea what you just said.

if i type my (masked) domain name www.papermodelforum.com...the forum does not connect.
(it says can't connect to cutandfold.info)

if I access the forum via the full address (http://cutandfold.info/cutandfoldforum) it works.

Only thing i have done in the last 5 minutes is click that "update php to 5.4

I don't know what "including SMF in an iframe" means...or what an iframe is?

This "do a redirect instead of an iframe" is even more confusing?

Removing code? I'm lost.

...
the forum still works...just can't access it using the domain name.
Could it be the domain name needs to dns server update because of some changes to the forum site?
The forum address is still the same though?..and the domain name just directs to an address I specify?


vbgamer45

If it is masked at a domain registration place can you just either forward instead using url forwarding feature on the domain.

The other option is we can change the code. If you feel comfortable you can pm your cpanel info and I can make the change in your forum's index.php to remove the check.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

airdave

Forgive me...I just wanna understand the best I can.

I have a domain name...and it is masked...and directed at an address.
The address hasn't changed.

In fact, if you type the address, the site is there and still works fine.

So why does the domain name not take you there any more?
I haven't changed the address or anything at fxdomains (the site where my domain name resides).

I don't see why I need to change anything on the forum site.?
Unless we have somehow changed the forum address? which we haven't...?

I checked at fxdomains, the directed address for the domain name.
It is correct...and if i test it, it works.
And yet...if I type www.papermodelforum.com into my browser, it says cutandfold.info wont connect.

vbgamer45

It's security SMF 2.0.13 to help reduce hackers.
This line specifically header('X-Frame-Options: SAMEORIGIN');
In your forum's index.php prevents the forum from being masked using iframe. It will work with a url redirect but not a mask unless you remove that line of code.

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Aleksi "Lex" Kilpinen

I do believe your forum is in place X which used to be shown inside a frameset in place Y,
for security reasons SMF prevents this in current versions.
Easiest route would be to just remove the code that does this, and that is what vbgamer offered to do for you.

EDIT: Ninja'd by vbgamer ;)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

airdave

ahhhhh I think I understand you now.

the connection is there, but at the forum end it ends up being blocked because of the masking.
ahh I get it. a security thing.

thank you for more explanation.
I really do appreciate your patience with me.
eventually I wrap my brain around this stuff...but it takes a lot head bashing.

okay...so where is the forum index php file? and I will try to change this code.

vbgamer45

in the cpanel file manager go to your smf forum and find the index.php in the main directory.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

airdave

I'm in file manager...and I think I see it.
there are 2 of them.

how do I access it...change it? this is the part I don't understand.
if i click the name, it does nothing.
if i double click, it downloads something.

Advertisement: