A great guide, it would be great if those who have experience and success could write about it.
Auto Start a Discussion Using AI (Gemini, ChatGPT & more)
huseyinfiliz Getting a 500 Error when using, followed the instructions to the T.
[19-Mar-2025 04:00:07 UTC] PHP Deprecated: Creation of dynamic property Hypweb\Flysystem\GoogleDrive\GoogleDriveAdapter::$root is deprecated in /home/treyb/cobbtalk.com/vendor/nao-pon/flysystem-google-drive/src/GoogleDriveAdapter.php on line 164
[19-Mar-2025 04:00:07 UTC] PHP Deprecated: Calling get_class() without arguments is deprecated in /home/treyb/cobbtalk.com/vendor/google/apiclient/src/Http/REST.php on line 58
treyb The error you received seems to be related to the PHP version, but I don’t understand the connection between this guide and nao-pon/flysystem-google-drive.
Let's start with this: What is your PHP version?
- Edited
huseyinfiliz Php 8.3 on this one, and CLI as well.
PHP 8.3.17 (cli) (built: Feb 13 2025 00:00:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.17, Copyright (c) Zend Technologies
with the ionCube PHP Loader v13.3.1, Copyright (c) 2002-2024, by ionCube Ltd.
with Zend OPcache v8.3.17, Copyright (c), by Zend Technologies
treyb Honestly, I couldn't understand the reason for this error. I'm sorry that I couldn't help. I couldn't find the connection between this error and this guide.
huseyinfiliz If we ignore the Google Drive part, any ideas? The 500 Error is odd.
I am now, only getting this error when visiting site.com/txtparsergemini.php
[19-Mar-2025 04:00:09 UTC] PHP Deprecated: Calling get_class() without arguments is deprecated in /home/treyb/cobbtalk.com/vendor/google/apiclient/src/Http/REST.php on line 58
treyb The issue seems to indicate that there is unsupported code in the mentioned file for PHP 8+. However, the code I provided should not reference that file. I don't understand the problem.
Tomorrow, I will perform a fresh Flarum installation and follow this guide again. If I encounter any issues, I will let you know the solution.
treyb you have to disable deprecation warnings
https://discuss.flarum.org/d/36404-stopping-deprecation-warnings
treyb Is anything visible on the PHP page?
Just a note... I think that AI generated content has great impact on SEO success in negative way. If that is something that you care of, of course.
treyb I think the HTTP 500 error would appear in the server log rather than the Flarum log. Do you see any errors there?
Also, when you open the first PHP file, does the message "Database connection successful" appear on the screen?
Silvestrus If you have a niche forum rather than a general one (if your forum is in English, a niche industry might not work), I think it helps people discover your forum.
This is purely my personal opinion.
- Edited
huseyinfiliz Yes, I will keep playing around and see if I can get anything going.
@huseyinfiliz I updated the API link to this, and it works now.
https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=
treyb Ah, yes, you need to obtain that link from Gemini AI Studio specifically for yourself.