CrazyElk Posted February 26 Posted February 26 (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. Edited Friday at 01:59 AM by CrazyElk 2 Quote
Uridium Posted Saturday at 12:16 PM Posted Saturday at 12:16 PM 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 1 Quote
CrazyElk Posted Saturday at 11:24 PM Author Posted Saturday at 11:24 PM (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 Saturday at 11:27 PM by CrazyElk 1 Quote
Uridium Posted Sunday at 04:08 AM Posted Sunday at 04:08 AM 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 Quote
rockwood Posted Sunday at 07:03 AM Posted Sunday at 07:03 AM 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 Quote
CrazyElk Posted Sunday at 09:24 AM Author Posted Sunday at 09:24 AM (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 Sunday at 09:26 AM by CrazyElk Quote
Uridium Posted Sunday at 12:04 PM Posted Sunday at 12:04 PM 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 . Quote
CrazyElk Posted Sunday at 01:17 PM Author Posted Sunday at 01:17 PM (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 Sunday at 01:18 PM by CrazyElk Quote
Uridium Posted Sunday at 05:45 PM Posted Sunday at 05:45 PM 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 1 Quote
Uridium Posted Sunday at 09:41 PM Posted Sunday at 09:41 PM 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 Quote
Magictallguy Posted Sunday at 09:55 PM Posted Sunday at 09:55 PM See the .env.local file that ships with gRPG v2. It'll shed some light on what your .env needs to resemble 1 Quote
Uridium Posted Sunday at 10:02 PM Posted Sunday at 10:02 PM 6 minutes ago, Magictallguy said: See the .env.local file that ships with gRPG v2. It'll shed some light on what your .env needs to resemble filezilla found it lol but the Cpanel/file manager couldnt lol Quote
Magictallguy Posted Sunday at 10:10 PM Posted Sunday at 10:10 PM 7 minutes ago, Uridium said: filezilla found it lol but the Cpanel/file manager couldnt lol It's a dotfile, so you may need to toggle the "Show hidden files" option in cPanel's File Manager 1 Quote
Uridium Posted Sunday at 10:13 PM Posted Sunday at 10:13 PM 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 🙂 Quote
CrazyElk Posted Sunday at 11:22 PM Author Posted Sunday at 11:22 PM 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 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. Quote
Uridium Posted Monday at 12:05 AM Posted Monday at 12:05 AM 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 Quote
Magictallguy Posted Monday at 12:10 AM Posted Monday at 12:10 AM 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 1 Quote
Uridium Posted Monday at 12:54 AM Posted Monday at 12:54 AM 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... Quote
CrazyElk Posted Monday at 02:56 AM Author Posted Monday at 02:56 AM 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. 1 Quote
Magictallguy Posted Monday at 03:10 AM Posted Monday at 03:10 AM 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 1 Quote
Uridium Posted 11 hours ago Posted 11 hours ago I keep getting this message when I try to login Security Error Your request has timed out for security purposes even when i try create a new account it displays the message.. Is there a file it writes to that creates that message that i can edit to remove my IP or whatever.. or is it a reinstall gama again issue... Quote
Magictallguy Posted 6 hours ago Posted 6 hours ago It's a session thing. Try swapping to file-based sessions instead of DB sessions. And I've just realised we've fully hijacked a thread here. Apologies, OP! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.