Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4263
Latest: Cekky
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43455
Total Topics: 7557
Most Online Today: 28
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 61
Total: 61

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

0 Members and 1 Guest are viewing this topic.

Offline landyvlad

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 62
    • 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

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 62
    • 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: 16524
    • 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

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 62
    • 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: 16524
    • 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

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 62
    • 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: 16524
    • 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
4797 Views
Last post March 21, 2007, 07:15:12 pm
by SMFHacks
3 Replies
5421 Views
Last post October 23, 2008, 09:28:03 pm
by SMFHacks
1 Replies
6299 Views
Last post March 07, 2009, 12:48:59 am
by SMFHacks
6 Replies
4516 Views
Last post May 18, 2009, 10:09:20 pm
by SMFHacks
3 Replies
4150 Views
Last post May 04, 2017, 03:30:12 pm
by SMFHacks

+- Recent Topics

[Mod]Tenor Posting Animated Gifs by SMFHacks
August 30, 2024, 04:04:26 pm

List of other errors after installing and trying to use by SMFHacks
August 27, 2024, 02:15:52 pm

Subject Error by SMFHacks
August 27, 2024, 02:15:46 pm

Store Not Logging Transactions or Sending Emails for Paid Items, Free Items Work by SMFHacks
August 27, 2024, 05:26:52 am

Don't Know How to Unhide Previously Hidden Items in Latest SMF Store 5.0 by Michael Vail
August 26, 2024, 11:38:33 pm

Undefined array key "session_var" and Undefined array key "session_id" Errors by SMFHacks
August 26, 2024, 11:10:54 pm

SMF Links Error by yamiacaveman
August 22, 2024, 06:21:53 pm

HTTP Error 500 by SMFHacks
August 20, 2024, 12:28:53 pm

Site upgrade to 2.1 by live627
August 18, 2024, 02:47:33 am

Uninstall issue and new licence no email by landyvlad
August 16, 2024, 08:05:48 am

Powered by EzPortal