Comment puis-je corriger l'erreur fatale RevSlider dans le tableau de bord après la mise à niveau vers PHP 7?
-
-
RevSlider,AFAICT,est unplugin spécifique à Wordpress.J'aiessayé https://revslider.stackexchange.com/,mais c'est 404pourmoi.RevSlider, AFAICT, is a plugin specific to Wordpress. I did try https://revslider.stackexchange.com/, but it 404s for me.
- 1
- 2018-05-11
- Chapman Atwell
-
Celapourraitne pas être appropriéici,mais celam'a ététrès utile car cetteerreur a rendu l'accès à l'administrateur complètementinaccessible après unemise àniveau de PHP,et le corrigern'étaitpas une question de débogage de ce qui s'étaitpassé,mais simplement d'appliquer le correctif àpartir de la réponse acceptée.This might not be appropriate here, but was most useful to me as this error made accessing the admin completely unreachable after a PHP upgrade, and fixing it was not a matter of debugging what happened but just applying the hotfix from the accepted answer.
- 3
- 2018-12-21
- Antti Haapala
-
1 réponses
- votes
-
- 2017-03-15
J'aipu corriger l'erreuren corrigeant à chaud leplugin RevSlider surmon serveuren tant que documentéici .
Dans
revslider/includes/framework/base-admin.class.php
,j'ai changé la ligne suivante (l. 21 dema version) de:private static $arrMetaBoxes = ''; //option boxes that will be added to post
à:
private static $arrMetaBoxes = array(); //option boxes that will be added to post
I was able to fix the error by hotfixing the RevSlider plugin on my server as documented here.
In
revslider/includes/framework/base-admin.class.php
, I changed the following line (l. 21 of my version) from:private static $arrMetaBoxes = ''; //option boxes that will be added to post
to:
private static $arrMetaBoxes = array(); //option boxes that will be added to post
-
Vouspouvez utiliser «[]» au lieu de «array ()».You can use `[]` instead of `array()`.
- 9
- 2017-03-15
- fuxia
-
Atravaillépourmoien 2018!Worked for me in 2018!
- 0
- 2018-09-19
- eyal_katz
-
Bontravail!Je viens depasser àphp 7.2 surmon serveuret celam'a été utile!Great job! Just upgraded to php 7.2 on my server and this came in handy!
- 2
- 2018-12-22
- Spencer Bigum
-
Salutmercipour cette réponse!Dansmon cas,j'utilisais lemodèle wordpress churchHopeet j'obtenais uneerreur sur/churchope/lib/revslider/inc_php/framework/base_admin.class.php:72 - corrigé celaen changeant la statiqueprivée $ arrMetaBoxes="";à la statiqueprivée $ arrMetaBoxes=array ();Hi thanks for this answer! In my case, I was using the churchHope wordpress template, and was getting an error on /churchope/lib/revslider/inc_php/framework/base_admin.class.php:72 - fixed this by changing private static $arrMetaBoxes = ""; to private static $arrMetaBoxes = array();
- 0
- 2019-04-11
- Paul Preibisch
-
Jete dois unebière.+1et pour l'explication,en php7,vous avez des restrictionsplus strictes sur lestypes,de sorte qu'une chaîne videne peutpas avoir quelque chose ajoutétouten latraitant comme untableau.Comme @fuxia l'amentionné,`[]`fonctionne égalementbien iciet estplus Pythonish.I owe you a beer. +1 and for the explanation, in php7 you have tighter restrictions on types so an empty string cannot have something appended to it while treating it like an array. As @fuxia mentioned `[]` also works here well and is more Pythonish.
- 0
- 2019-05-23
- Ligemer
-
dansmon cas,revslider était sous:my_url/wp-content/plugins/revslider/inc_php/frameworkin my case revslider was under: my_url/wp-content/plugins/revslider/inc_php/framework
- 0
- 2019-08-06
- Alessandro Mattiuzzi
-
Nov 2019 çamarche !!!Nov 2019 it works!!!
- 0
- 2019-11-14
- Daniel Mauricio Sánchez Ávila
-
Nous avons rencontré cetteerreur aujourd'hui lors de lamigration vers PHP 7.3et ce correctif aparfaitementfonctionné.Comme @AlessandroMattiuzzi l'amentionné,le chemin semble avoir changé dans les versions récentes duplugin.We encountered this error today when migrating to PHP 7.3 and this hotfix worked perfectly. As @AlessandroMattiuzzi mentioned, the path appears to have changed in recent versions of the plugin.
- 0
- 2020-03-24
- bwright
Jepeux accéder au côtépublic du site. Mais letableau debordest vide.
Lejournal affiche uneerreurpointant vers leplugin RevSlider:
Voici latrace complète: