Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

G'day Viewers,

 

Just a few lines to inform those interested that I have forked a copy of gRPG V2 I found on Github and have been doing some work to it here Github.

Why? Because I like legacy code and its been around long enough that it deserves to stay around a bit longer and so I though I would have a go at a version.

It's not perfect, its not a complete rewrite (defeating the purpose) but I believe it's a step in the right direction, go check it out for yourselves.

It still needs work and there is plenty that could be done, so if anyone felt like forking a copy and contributing please feel free.

Also, if anyone had any plugins/mods they would care to contribute to the project please feel free to offer them up, if not directly included, then as a seperate library of plugins offered in the repository.

Additionally, if anyone had some spare time and felt like putting togethor a nice theme or had one sitting on a drive somewhere and felt like contributing it, that would be welcome also.

It runs on PHP8+ and the script is somewhat responsive with more work to be done but something I believe will be a boon for newcomers or those using shared hosting is the fact that dependance on composer or docker has been removed making it stand alone and very simple to install via the handy dandy installer.

I am not going to include lots of images, anyone interested can check the demo account at gRPG.Me using the credentials User = Demo and Pass = Demo .

 

Cheers.

 

 

gRPG-MWG.thumb.png.3f2bf0c5d721101223ca3f90191ede16.png

Edited by CrazyElk
  • Like 2
Posted

I'll have a look at this Cheers matey

Cant get passed syep 3 tried variations of PHP from 7.4 to 8.3 all I get is

 

Progress: 

Step 3 of 8

The configuration file has been created

Attempting connection to the database..


Fatal error: Uncaught Error: Call to undefined function mb_convert_encoding() in /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Util/Str.php:45 Stack trace: #0 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/File/Reader.php(73): Dotenv\Util\Str::utf8('MYSQL_HOST="loc...', NULL) #1 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/phpoption/phpoption/Some.php(108): Dotenv\Store\File\Reader::Dotenv\Store\File\{closure}('MYSQL_HOST="loc...') #2 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/File/Reader.php(72): PhpOption\Some->flatMap(Object(Closure)) #3 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/File/Reader.php(48): Dotenv\Store\File\Reader::readFromFile('/home/knightfe/...', NULL) #4 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/FileStore.php(62): Dotenv\Store\File\Reader::read(Array, true, NULL) #5 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Dotenv.php(182): Dotenv\Store\FileStore->read() #6 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Dotenv.php(197): Dotenv\Dotenv->load() #7 /home/knightfe/gprg.wizwych.co.uk/inc/dbcon.php(36): Dotenv\Dotenv->safeLoad() #8 /home/knightfe/gprg.wizwych.co.uk/install/install.php(342): require_once('/home/knightfe/...') #9 {main} thrown in /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Util/Str.php on line 45
  • Thanks 1
Posted (edited)
11 hours ago, Uridium said:

I'll have a look at this Cheers matey

Cant get passed syep 3 tried variations of PHP from 7.4 to 8.3 all I get is

 

Progress: 

Step 3 of 8

The configuration file has been created

Attempting connection to the database..


Fatal error: Uncaught Error: Call to undefined function mb_convert_encoding() in /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Util/Str.php:45 Stack trace: #0 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/File/Reader.php(73): Dotenv\Util\Str::utf8('MYSQL_HOST="loc...', NULL) #1 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/phpoption/phpoption/Some.php(108): Dotenv\Store\File\Reader::Dotenv\Store\File\{closure}('MYSQL_HOST="loc...') #2 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/File/Reader.php(72): PhpOption\Some->flatMap(Object(Closure)) #3 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/File/Reader.php(48): Dotenv\Store\File\Reader::readFromFile('/home/knightfe/...', NULL) #4 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Store/FileStore.php(62): Dotenv\Store\File\Reader::read(Array, true, NULL) #5 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Dotenv.php(182): Dotenv\Store\FileStore->read() #6 /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Dotenv.php(197): Dotenv\Dotenv->load() #7 /home/knightfe/gprg.wizwych.co.uk/inc/dbcon.php(36): Dotenv\Dotenv->safeLoad() #8 /home/knightfe/gprg.wizwych.co.uk/install/install.php(342): require_once('/home/knightfe/...') #9 {main} thrown in /home/knightfe/gprg.wizwych.co.uk/inc/vendor/vlucas/phpdotenv/Util/Str.php on line 45

Interesting, .check to see that  PHP mbstring extension is enabled in you're hosting, it appears not to be at this time.

Added a check in the installer to determine whether or not its enabled, download a fresh copy from Github and run it again. 🙂

Edited by CrazyElk
  • Like 1
Posted
2 hours ago, Uridium said:

Mbstring is not active on my site im waiting for hosting to get back in touch which is annoying as we are both on the same hosting company

are you using shared hosting? that is painful stuff XD

Posted (edited)
5 hours ago, Uridium said:

Mbstring is not active on my site im waiting for hosting to get back in touch which is annoying as we are both on the same hosting company

If you use Asura, open DirectAdmin and click on 'Select PHP Version' fifth row down and there will be a number of extensions/checkboxes available, just check the mbstring box and you should be golden.

Edited by CrazyElk
Posted
2 hours ago, CrazyElk said:

If you use Asura, open DirectAdmin and click on 'Select PHP Version' fifth row down and there will be a number of extensions/checkboxes available, just check the mbstring box and you should be golden.

Box was checked on all php versions  when I did the php info test it said it wasn't .

Posted (edited)
1 hour ago, Uridium said:

Box was checked on all php versions  when I did the php info test it said it wasn't .

Interesting, I just installed it at AsuraHosting and had no issue, create a file and add the following, run it and check to see if mbstring is actually enabled ... <?php phpinfo(); ?> 

Edited by CrazyElk
Posted
4 hours ago, CrazyElk said:

Interesting, I just installed it at AsuraHosting and had no issue, create a file and add the following, run it and check to see if mbstring is actually enabled ... <?php phpinfo(); ?> 

It seems Asura only have mbstring for main domain not sub domains like grpg.wizwych.co.uk only wizwych.co.uk

  • Confused 1
Posted

Ive finally got MBSTRING on my subdomain grpg.wizwych.co.uk now I have another issue lol I can search for the .inv file i can see it listed when it says its found it but when igo to the actual site to ist the .env file its not there no mention of .env file  what so ever.

Image 1 shows .env was found in the list

image 2 shows try finding me you twat

image 3 shows it dont wanna carry on

image.jpeg

nothing.jpg

correct.jpg

Posted
2 minutes ago, Magictallguy said:

It's a dotfile, so you may need to toggle the "Show hidden files" option in cPanel's File Manager

All sorted now finally its installed lol

Thank You Magic for that I didnt see the  Show hidden files option 🙂

Posted
1 hour ago, Uridium said:

Ive finally got MBSTRING on my subdomain grpg.wizwych.co.uk now I have another issue lol I can search for the .inv file i can see it listed when it says its found it but when igo to the actual site to ist the .env file its not there no mention of .env file  what so ever.

Image 1 shows .env was found in the list

image 2 shows try finding me you twat

image 3 shows it dont wanna carry on

image.jpeg

nothing.jpg

correct.jpg

That was like pulling teeth. 🙂

Who knew that Asura only have mbstring available for main domain not sub domains, umm not me.

MTG's tip regarding hidden files was a good one.

For reference, the .env file is created by the installer during setup, as long as your db credentials are correct there should be no issue.

Thanks for bringing this issue to light, I may include a warning about subdomains and mbstring relative to some hosting providers.

Posted
41 minutes ago, CrazyElk said:

That was like pulling teeth. 🙂

Who knew that Asura only have mbstring available for main domain not sub domains, umm not me.

MTG's tip regarding hidden files was a good one.

For reference, the .env file is created by the installer during setup, as long as your db credentials are correct there should be no issue.

Thanks for bringing this issue to light, I may include a warning about subdomains and mbstring relative to some hosting providers.

Another issue I found was that once it created the .env file and added the data for database if for some reason it couldnt get passed that point like mine did and didnt install the SQLS you couldnt proceed any further until you DELETED the .inv file and started again

Posted
3 hours ago, Uridium said:

Another issue I found was that once it created the .env file and added the data for database if for some reason it couldnt get passed that point like mine did and didnt install the SQLS you couldnt proceed any further until you DELETED the .inv file and started again

This is correct and the intended fix. If the .env is invalid or incorrectly generated, it's simply easier to make the site regenerate it after re-filling the form. Seeing as the installer checks to see if the .env file exists to get past that step, deleting an incorrect .env is the way to go - I didn't automate this to prevent a potential race condition which would introduce an endless loop

  • Like 1
Posted
1 hour ago, Uridium said:

found a few issues..

1 No Validation email is being sent to new users
2 Support Desk doesnt show response to user from admin even in the events...

 

1 - I  have created numerous accounts and each time a validation email is sent to the nominated mailbox, umm did ya check the spam folder because until I told my email client it was not spam, thats where they went. 🙂

2 - Made some changes, there is now onpage notification and also an event is created, download/install the new file from Github.

  • Thanks 1
Posted
2 hours ago, Uridium said:

1 No Validation email is being sent to new users

You'll have to check your server's mail configuration. It appears your host has an ... alternative ... setup to the more commonly-found ones, so the default mail() call might not be enough

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...