![]() |
Is there any TGPX php7.4 help around?
I set up the latest TGPX script set up for 7.4 PHP by the AdultList people and it is working just fine, but I need some help with one thing.
There is a utility program named shuffle.php which mixes is up all the fhg's randomly. It has to be executed from the CMD using SSH. The shuffle.php file goes in the admin directory of TGPX folder on my server. I got all the way to issuing this command: /usr/local/bin/php shuffle.php and then got this error message: Could not open input file: shuffle.php Anyone got any ideas about why this might not be working? Or has anyone tried it? |
That's not an issue of php version, that's an issue of the shuffle.php file not being in the current directory. You need to cd to the admin directory first.
|
Quote:
Graciously the staff at MojoHost puts up with my time-wasting crapola and helps me get through these periods of abject stupidity. I raise a glass to everyone smarter than me! At least, I got a post count out of this.:thumbsup |
Oh man I actually switched a TGPX site recently because I thought it couldn't run on PHP 6+, whoops! :1orglaugh:1orglaugh
|
Quote:
6 was skipped because it was in development forever and generally just got a bad reputation. |
Quote:
Turns out, I was using the wrong app for the plugin. Two programs have a similar name and I was using the wrong one. Even though I was reading the name over and over... :Oh crap:1orglaugh |
Quote:
|
I still run TGPX on PHP 4 or 5 LOL
|
A shot in th dark here:
When I run the shuffle.php, in PHP ver 7.4, I get this error: Parse error: syntax error, unexpected '?' in /home/xxxxx/domains/xxxxxxx.com/public_html/tgpx/includes/common.php on line 2152 line 2152 - $results['preview'] = $parser->images[array_rand($parser->images ?? [null])]['full']; I found this: If you are trying to use the null coalescing operator ?? in a version of PHP prior to PHP 7 you will get this error. Is there a fix with this very limited info? |
Well the first thing that springs to mind is, are you definitely running PHP 7.4?
Login to your box and type php -v |
Quote:
Well, let me qualify that. The domain itself is using a PHP 5.6 script, but the directory that TGPX is in has been enabled for PHP 7.4. I've contacted my host to see if that directory is still enabled for 7.4. That might be the issue. Although I don't know how it would have reverted to 5.6. |
All times are GMT -7. The time now is 06:25 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123