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: 33
Total: 33

Author Topic: Gallery Pro v8.0 and PHP 7.4  (Read 2914 times)

0 Members and 1 Guest are viewing this topic.

Offline FJCC

  • Member
  • *
  • Posts: 4
    • View Profile
Gallery Pro v8.0 and PHP 7.4
« on: January 20, 2021, 09:24:50 pm »
I'm using Gallery Pro v8.0 (I know it's not the latest version) and when I started testing it with PHP 7.4 the following error message was logged for ./Sources/Gallery2.php
php 7.4 implode(): Passing glue string after array is deprecated. Swap the parameters.

I implemented the following fix throughout the file (there are five occurrences of the following code):
Find:
Code: [Select]
$groupsdata = implode($user_info['groups'], ',');
Replace With:
Code: [Select]
$groupsdata = implode(',', $user_info['groups']);

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Gallery Pro v8.0 and PHP 7.4
« Reply #1 on: January 20, 2021, 09:31:15 pm »
Yes, that was one of the changes required.

Those changes are in our latest build: Here is a changelog since 8.0

9.0 beta 2
!Fixes for PHP 7.4+
+Added auto rotation based on EXIF settings. If EXIF is enabled.
+Look and feel updates for SMF 2.1.x
!Fix performance for recent comments block added index for large galleries
!Fixed a SQL error bug deleting a comment from the moderation section

8.0.8
!Fixed move picture to different category dropdown on category display.

8.0.7
!Fixed bug in some cases not allowing a single file to be uploaded.
+Improved watermark handling keeping orginal files.

8.0.6
!Must Update. Fix security issue with Local/Remote FLV fusing player_flv_maxi.swf FLV Player.
Have removed the option to play FLV videos. Make sure this file is removed gallery/videos/player_flv_maxi.swf from your forum

8.0.5
!Fixed bulk add link for user galleries when using the main menu
!Removed aviary settings since Adobe ended the product


8.0.4
!Fixed undefined gallery_picture_id on who favorited page for SMF 2.1.x
!Fixed undefined issue send pm online/offline buttons for SMF 2.1.x

8.0.3
!Fixed top button add picture select user gallery feature not working on some cases
!Fixed on add picture error for user gallery to keep user categories loaded in SMF 2.0.x
!Email notifications now add message-id header for SMF 2.0.x
!When getting the tinypic url check that allow_fopen is enabled


8.0.2
!Do not allow downloads of linked video files
!Mootools for image box is now supported over https://
!Avairy image affects script now supported over https://

8.0.1
!Fixed bug with rebuilding related index with 's characters in the title
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 FJCC

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Gallery Pro v8.0 and PHP 7.4
« Reply #2 on: January 20, 2021, 09:35:06 pm »
Thanks - I'll contact the forum owner and suggest that he pay for an upgrade.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Gallery Pro v8.0 and PHP 7.4
« Reply #3 on: January 20, 2021, 10:21:25 pm »
Sounds good yeah you can always upgrade at any time for $25 to get the latest updates for another year.
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/
Like Like x 1 View List

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 165
    • View Profile
Re: Gallery Pro v8.0 and PHP 7.4
« Reply #4 on: December 16, 2021, 03:45:57 am »
Today I switched from PHP 7.3 to 7.4 and go the same error while I want to view the Error Logs in 

/Sources/Load.php

Code: [Select]
//Start SMF Gallery
if (allowedTo('smfgallery_view'))
{
global $sourcedir ;
require_once($sourcedir . '/Subs-Gallery2.php');

if (!$context['user']['is_guest'])

$groupsdata = implode($user_info['groups'], ',');


replace last line with :

Code: [Select]
                $groupsdata = implode(',',$user_info['groups']);
« Last Edit: December 16, 2021, 03:48:37 am by Michel68 »

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 165
    • View Profile
Re: Gallery Pro v8.0 and PHP 7.4
« Reply #5 on: December 16, 2021, 12:57:25 pm »
I forgot to say that I am already on 9.0b and the error was stil there.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Gallery Pro v8.0 and PHP 7.4
« Reply #6 on: December 16, 2021, 01:34:03 pm »
It would only be fixed if you uninstall the old version completely as that code is a file edit that remains.
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/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5670 Views
Last post June 23, 2008, 07:10:29 pm
by SMFHacks
5 Replies
5473 Views
Last post February 17, 2011, 02:45:01 pm
by SMFHacks
1 Replies
5000 Views
Last post June 19, 2011, 07:04:57 pm
by SMFHacks
3 Replies
4150 Views
Last post May 04, 2017, 03:30:12 pm
by SMFHacks
0 Replies
2902 Views
Last post August 12, 2020, 09:16:49 am
by CWVRV

+- 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