Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • jeffw
  • ljungi
  • maxleondalheimer
  • admin
Group Mods
  • malekovitch

Support for: Vellum – Responsive WordPress Theme

Vellum

Public Group  |  active 1 month, 2 weeks ago ago
Viewing post 1 to 3 (3 total posts)

Content Rotator not working on PHP 7.2.x

  • dlishdesign

    said

    When using the content rotator feature after upgrading to PHP 7.2.9 from PHP 5.6.20, I get the following fatal errors:

    Warning: Cannot assign an empty string to a string offset in /app/public/wp-content/themes/parallelus-vellum/extensions/content-rotator/load.php on line 148 Fatal error: Uncaught Error: Cannot use assign-op operators with string offsets in /app/public/wp-content/themes/parallelus-vellum/extensions/content-rotator/load.php:176 Stack trace: #0 /app/public/wp-content/themes/parallelus-vellum/extensions/content-rotator/load.php(65): Runway_ResponsiveContentRotator->getPostContent(Array) #1 /app/public/wp-content/themes/parallelus-vellum/extensions/theme-utilities/theme-shortcodes.php(71): Runway_ResponsiveContentRotator->Generate(Array) #2 /app/public/wp-includes/shortcodes.php(319): content_rotator(Array, ”, ‘content_rotator’) #3 [internal function]: do_shortcode_tag(Array) #4 /app/public/wp-includes/shortcodes.php(197): preg_replace_callback(‘/[([?)(conten…’, ‘do_shortcode_ta…’, ‘[content_rotato…’) #5 /app/public/wp-content/plugins/js_composer/include/helpers/helpers.php(236): do_shortcode(‘[content_rotato…’) #6 /app/public/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php(93): wpb_js_remove_wpautop(‘[content_rotato…’) #7 /app/public/wp-content/plugins/js_c in /app/public/wp-content/themes/parallelus-vellum/extensions/content-rotator/load.php on line 176

    It appears that there is some sort of conflict/impcompatability with PHP 7+ and the content rotator feature. Can you help?

  • jeffw

    said

    Yeah, they moved the coding goalposts in PHP v.7.2. Here’s how to fix that error.

    Open the ‘extensions/content-rotator/load.php‘ file and on line 121 or thereabouts you’ll see this line of code…

    $content='';

    Change it to this…

    $content = array();

    Save and upload.

    Thanks for pointing this out to us so we can get it fixed.

Viewing post 1 to 3 (3 total posts)
Topic tags: content rotator, php 7