Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

error message from WordPress debug on portfolio video project option

Home / Forums / Ascend Theme / error message from WordPress debug on portfolio video project option

This topic is: Not a support question
[Not a support question]
Posted in: Ascend Theme
September 19, 2018 at 1:41 pm

While developing mods for my website, I have wordpress debug mode set. An error message is showing up for each of several portfolio items that are setup to have a youtube video for the project option (the “Project Option” field is set to “Video” and a KAD shortcode is put in the “Video embed” field).

Example video embed value is:
[kad_youtube url=” width=”600″ height=”400″maxwidth=300 hidecontrols=”true” autoplay=”true” modestbranding=”true”]

Everything works fine, but the following error is provided from WordPress debug:
Notice: Undefined offset: 1 in …/wp-content/themes/ascend_premium/templates/post-video-output.php on line 25

The referenced code (line 25) is:
$url = $match[1];

When I changed it to below, everything still works fine and the error from WordPress debug no longer is displayed.
$url = $match;

Bill

  • The forum ‘Ascend Theme’ is closed to new topics and replies.