GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Is there any TGPX php7.4 help around? (https://gfy.com/showthread.php?t=1344777)

ruff 05-07-2021 09:26 AM

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?

k0nr4d 05-07-2021 11:35 AM

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.

ruff 05-07-2021 03:19 PM

Quote:

Originally Posted by k0nr4d (Post 22857208)
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.

As it happens, you are correct and I knew that as I referenced it. However, that did not stop me from fucking up and not adding this last part to the command /tgpx/admin. So once again I have missed the obvious when it was staring me right in the face.

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

mechanicvirus 05-07-2021 08:34 PM

Oh man I actually switched a TGPX site recently because I thought it couldn't run on PHP 6+, whoops! :1orglaugh:1orglaugh

k0nr4d 05-08-2021 01:26 AM

Quote:

Originally Posted by mechanicvirus (Post 22857353)
PHP 6+

There was never a PHP 6 that was generally released, it went from 5.6 to 7.0.
6 was skipped because it was in development forever and generally just got a bad reputation.

Applebite Media 05-08-2021 04:43 AM

Quote:

Originally Posted by ruff (Post 22857275)
As it happens, you are correct and I knew that as I referenced it. However, that did not stop me from fucking up and not adding this last part to the command /tgpx/admin. So once again I have missed the obvious when it was staring me right in the face.

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

LOL... i had a similar experience this week with the new mocap gear.... I could not get it to connect to the ip... not wireless or usb. Had written support asking what the hell was going on... Jumped on the forum asking for help.... bla bla bla...

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

mechanicvirus 05-08-2021 10:48 AM

Quote:

Originally Posted by k0nr4d (Post 22857398)
There was never a PHP 6 that was generally released, it went from 5.6 to 7.0.
6 was skipped because it was in development forever and generally just got a bad reputation.

Looks like I picked the wrong week to quit sniffing glue. :1orglaugh:helpme

faxxaff 05-09-2021 07:51 AM

I still run TGPX on PHP 4 or 5 LOL

ruff 05-09-2021 08:35 AM

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?

redwhiteandblue 05-09-2021 08:48 AM

Well the first thing that springs to mind is, are you definitely running PHP 7.4?

Login to your box and type php -v

ruff 05-09-2021 02:08 PM

Quote:

Originally Posted by redwhiteandblue (Post 22857730)
Well the first thing that springs to mind is, are you definitely running PHP 7.4?

Login to your box and type php -v

Yep. 7.4
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