Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43301
Total Topics: 7525
Most Online Today: 119
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 150
Total: 150

Author Topic: 500 error with gallery.  (Read 1916 times)

0 Members and 1 Guest are viewing this topic.

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
500 error with gallery.
« on: June 07, 2023, 03:56:33 am »
The gallery link: https://gsx1400owners.org/forum/index.php?action=gallery
as you can see currently generates a 500 error.

HISTORY

I was getting the 500 error as above and the error log contained:
Quote
Guest
 (IP address)
 d62cd46c0b4c4ffa6255407149e35b63
 https://gsx1400owners.org/forum/index.php?action=gallery;sa=view;id=135
 /home/gsxowner/public_html/forum/index.php (Line 455)  Backtrace information

Type of error: General
Error messageSelect
2: require_once(/home/gsxowner/public_html/forum/Sources/Gallery2.php): Failed to open stream: No such file or directory

One of my fellow admins who's more conversant with the backend side of things, said:
Quote
there is a file  called Gallery2.php keeps deleting itself, I have no idea why ???
I keep putting it back, and they gallery works again. but it just goes again.

I realised I was using a previous version of gallery pro so downloaded and installed the latest version (as at the date of this post). This seemed to fix the issue. Briefly.

Presumably this reinstall meant that, once again, there was a Gallery2.php in the directory again but yes, it soon disappeared.

Ultimately tracked this down to
Quote
CPGuard is detecting Gallery2.php as possibly malicious because of some base64 string manipulations.
The match is: {HEX}Malware.Expert.php.ini.ini.ini.ini.ini.ini.chmod.base64.decode.base64.decode.php

My host added the file to the whitelist so it's not disappearing any more.
HOWEVER the 500 error persists.

I again checked with my host and they have confirmed
Quote
The file is there and permissions all look normal.
I can't see a reason for the error 500 being logged in the domlogs or in the LiteSpeed global log.
Everything looks normal on this end, nothing tripping in Mod_Sec (WAF) either.

So my questions are:
  • What might be causing this error, and how should I proceed to address it?
  • What's a base64 line? Should it be in that file?
  • Is every instance of gallery2.php identical or is it something that changes between installations?
  • What does Gallery2.php actually DO?

It was suggested that (assuming the gallery lite version) I should remove line 384-ish
Code: [Select]
die(base64_decode('UG93ZXJlZCBieSBHYWxsZXJ5IEZvciBTTUYgIG1hZGUgYnkgdmJnYW1lcjQ1IGh0dHA6Ly93d3cuc21maGFja3MuY29t'));
but what does this line do? And what would be the impact of removing it?

I'm unsure whether the same applies to the Pro version so seeking guidance here before I touch anything.


I'd like to extend my appreciation to @vbgamer for his support this far.

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: 500 error with gallery.
« Reply #1 on: June 07, 2023, 07:05:15 am »
OK so several hours later it is online again. Some icons missing etc but that can wait).

My host tells me he identified a "PHP Fatal error" and that he has managed to fix that.
I've really no idea what that means and have asked for more details and will pass those on.

For knowledge purposes etc I'd still appreciate answers to the questions in my earlier post.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: 500 error with gallery.
« Reply #2 on: June 07, 2023, 08:37:46 am »
Which icons? I would reupload the gallery folder as that has all the icons and graphics files.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: 500 error with gallery.
« Reply #3 on: June 07, 2023, 11:28:07 pm »
The icons I mean are the custom icons - don't worry about that I'll figure it out.

My host says PHP was throwing a fatal error because the virus scanner quarantined several files.
In any event that seems to be sorted now.

But when you have a chance (not urgent) if you could explain what a base 64 line is, what it does and what would be the impact of removing it?
eg
Code: [Select]
die(base64_decode('UG93ZXJlZCBieSBHYWxsZXJ5IEZvciBTTUYgIG1hZGUgYnkgdmJnYW1lcjQ1IGh0dHA6Ly93d3cuc21maGFja3MuY29t'));

Thank you.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: 500 error with gallery.
« Reply #4 on: June 07, 2023, 11:34:40 pm »
That line is just is an internal think I use to display the SMF Gallery Pro version
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: 500 error with gallery.
« Reply #5 on: June 07, 2023, 11:39:41 pm »
AH OK and it has to be a base64 thing I assume.

Anyway seems to be resolved mate thanks for all your help.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: 500 error with gallery.
« Reply #6 on: June 08, 2023, 10:32:59 am »
Great glad you have it resolved!
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Agree Agree x 1 View List

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
4749 Views
Last post March 21, 2007, 07:15:12 pm
by SMFHacks
3 Replies
5375 Views
Last post October 23, 2008, 09:28:03 pm
by SMFHacks
1 Replies
6234 Views
Last post March 07, 2009, 12:48:59 am
by SMFHacks
6 Replies
4475 Views
Last post May 18, 2009, 10:09:20 pm
by SMFHacks
3 Replies
4094 Views
Last post May 04, 2017, 03:30:12 pm
by SMFHacks

+- Recent Topics

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

Powered by EzPortal