דלג על הניווט

Waiting for author

Topic Tags: Compatibility

Overview of the issue

A fatal error occurs when attempting to translate a page created with Visual Composer while using PHP 8.0.x:
Fatal error: Uncaught ReflectionException: Trying to invoke protected method VisualComposer\Modules\Vendors\Plugins\WpmlController::blockPackageTranslation() from scope ReflectionMethod in .../wp-content/plugins/visualcomposer/visualcomposer/Framework/Container.php:74

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/visualcomposer/visualcomposer/Modules/Vendors/Plugins/WpmlController.php file.
  • Replace:
        protected function blockPackageTranslation($packageTranslate, $post_id)
    
  • With:
        public function blockPackageTranslation($packageTranslate, $post_id)
    

השאר תגובה

אנא הישאר בנושא והיה מכבד כלפי אחרים. אם אתה זקוק לעזרה בנושאים שאינם קשורים לפוסט זה, השתמש בפורום התמיכה שלנו כדי להתחיל צ'אט או לשלוח כרטיס.

אתה יכול להשתמש בתגים אלה:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>