Jump to content

1.7.7.0 fejl ved visning af modul


966972_1508426717

Recommended Posts

Følgende fejl vises ved modulkatalog;

Kan ikke hente katalogdata, prøv venligst igen senere. Grund: Warning: A non-numeric value encountered

Følgende sker ved at trykke på module manager:

Symfony\Component\Debug\Exception\ContextErrorException

in src/Adapter/Presenter/Module/ModulePresenter.php (line 66)

        }

        $attributes = $module->attributes->all();

        $attributes['picos'] = $this->addPicos($attributes);

        $attributes['price'] = $this->getModulePrice($attributes['price']);

        $attributes['starsRate'] = str_replace('.', '', round($attributes['avgRate'] * 2) / 2); // Round to the nearest 0.5

        return [

            'attributes' => $attributes,

            'disk' => $module->disk->all(),

            'database' => $module->database->all(),

Hvordan retter man dette?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...