- Edited
Applepiee What is the error you get and where you get?
Oh I see is in your first post.
Did you have the issue also with PHP 7.3?
Applepiee What is the error you get and where you get?
Oh I see is in your first post.
Did you have the issue also with PHP 7.3?
I don't have php 7.3 installed on my system. I have php 5.6, php 7.1, php 7.4
Here's the complete info from the debugger:
ErrorException (E_ERROR)
Call to undefined function array_get() (View: /home.md10/home/public_html/vendor/flarum/core/views/frontend/forum.blade.php)
Previous exceptions
Call to undefined function array_get() (0)
/home.md10/home/public_html/vendor/illuminate/view/Engines/PhpEngine.php
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
Applepiee this is not including your current Flarum version that is what I want check.
Can you try to see if the error persist also on PHP 7.3? Or with PHP 7.1 if you don't have PHP 7.4, error persist?
peopleinside It's not possible for me to try it with PHP 7.3 as VestaCP doesn't make it easy installing new php versions.. And I installed this beta because I saw it was php 7.4 compatible.
Applepiee umh I'm running under PHP 7.3 never tried PHP 7.4 but if is compatible ok.
Please try php flarum cache:clear see if this resolve.
php flarum info
what version of Flarum current installed show?
peopleinside
Yes, I tried clearing cache a few times. Thanks for the tip anyway
Oh, I forgot to include that part:
Flarum core 0.1.0-beta.14.1
PHP version: 7.4.4
Yes, I tried clearing cache a few times. Thanks for the tip anyway
Asked because you removed some extensions during our conversation so this can help.
Sorry but I have no idea why you get this error.
You still have two extensions not compatible:
| fof-user-bio | 0.1.3 | |
| matteocontrini-imgur-upload | v3.4.1
Try to update this two not compatible extensions
Applepiee Yes but check latest release and release listed on your post.
You are using old not updated versions. Update it!
Only user-bio need to be updated. you are using version 0.1.3 latest version is 0.3.1
peopleinside
You're right! Is there a command to force update all of them at once?
Applepiee I'm not sure but can be composer update --no-install --with-all-dependencies
command that you can find on the Beta 14 announcement.
In any case if is only user bio you can try:
composer require fof/user-bio
than
php flarum cache:clear
peopleinside Hm, that doesn't seem to work
[Symfony\Component\Console\Exception\RuntimeException]
The "--no-install" option does not exist.
Applepiee mmmm i remember this error also on my side.
Do you have a backup of the previous version? You should always do a backup.
I think you can try: composer update --with-all-dependencies
Are you sure to have followed every steps mentioned here?
My personal recommendation is to just reinstall Flarum, readd the Extensions you need (and which are compatible), copy over your config.php, storage and public folders and then use the php flarum migrate
and php flarum cache:clear
commands. Reinstalling sounds like a hassle, but most stuff is stored in your db anyways, copying over the config.php should make it a mostly painless experience (of course I don't know your exact setup though, there might always be complications). I run beta 14 on PHP 7.4.12 with no issues.
peopleinside
Yea I tried all steps except the one that gives the error I guess? I don't remember exactly.
Your suggestion says there's nothing to update
sh-4.2$ /usr/bin/php74 /bin/composer update --with-all-dependencies
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package reflar/stopforumspam is abandoned, you should avoid using it. Use fof/stopforumspam instead.
Generating autoload files
41 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Thanks again for all the help
You might need to adjust the required version numbers within the composer.json
askvortsov What exactly would I have to change?
Please do:
composer remove reflar/stopforumspam
than
composer require fof/stopforumspam
and php flarum cache:clear
You are using a deprecated extension, let's try to fix this.
Also composer require fof/user-bio
and php flarum cache:clear
Applepiee If you look in the composer.json
file, you'll see that under require
it lists composer package names and versions. Try replacing the versions with the versions you actually want, or even with wildcards ('*'
) for any version).
peopleinside I did the commands, but still the same problem
sh-4.2$ /usr/bin/php74 /bin/composer remove reflar/stopforumspam
reflar/stopforumspam is not required in your composer.json and has not been removed
Dependency "flarum/core" is also a root requirement, but is not explicitly allowed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
- Removing reflar/stopforumspam (0.1.5)
Writing lock file
Generating autoload files
41 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
sh-4.2$ /usr/bin/php74 /bin/composer require reflar/stopforumspam
Using version ^0.3.1 for reflar/stopforumspam
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing reflar/stopforumspam (0.3.1): Downloading (100%)
reflar/stopforumspam suggests installing fof/spamblock (Allows the option to report spammers to StopForumSpam in order to keep the greater forum community spam free.)
Package reflar/stopforumspam is abandoned, you should avoid using it. Use fof/stopforumspam instead.
Writing lock file
Generating autoload files
42 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
sh-4.2$ /usr/bin/php74 /bin/composer require fof/user-bio
Using version ^0.3.1 for fof/user-bio
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package reflar/stopforumspam is abandoned, you should avoid using it. Use fof/stopforumspam instead.
Generating autoload files
42 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
sh-4.2$ /usr/bin/php74 flarum cache:clear
Clearing the cache...
sh-4.2$