Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 191
Total: 191

Author Topic: 500 error with gallery.  (Read 1756 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
4689 Views
Last post March 21, 2007, 07:15:12 pm
by SMFHacks
3 Replies
5298 Views
Last post October 23, 2008, 09:28:03 pm
by SMFHacks
1 Replies
6172 Views
Last post March 07, 2009, 12:48:59 am
by SMFHacks
6 Replies
4435 Views
Last post May 18, 2009, 10:09:20 pm
by SMFHacks
3 Replies
4001 Views
Last post May 04, 2017, 03:30:12 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal