Warning: Undefined variable $itemId in

  • Posts: 2

Warning: Undefined variable $itemId in was created by ypforista

Greetings!

I'm getting the following from the Joomla Admin panel:
Warning: Undefined variable $itemId in <joomla_path>/administrator/components/com_yendifvideoshare/libraries/utils.php on line 566

Here is a snippet of the code from the file beforementioned:
// If there is a match update Itemid to match that menu item
		if ( $match ) {
			$itemId = $match->id;
		}
		
		return array( 'itemId' => $itemId, 'is_exact_match' => $is_exact_match );
	}
	
	public static function prepareURL( $url, $pathonly = true ) {	
		return JURI::root( $pathonly ) . '/' . $url . '?v=1.2.9';
	}
	
	public static function getVideoImageFromEmbedCode( $embedcode ) {
		$image = '';

		$document = new DOMDocument();
		@$document->loadHTML( $embedcode );	

		$iframes = $document->getElementsByTagName( 'iframe' ); 
		if ( $iframes->length > 0 ) {
			if ( $iframes->item(0)->hasAttribute( 'src' ) ) {
				$src = $iframes->item(0)->getAttribute( 'src' );
Environment:

YendifVideoShare 1.2.9

Database Type mysql
Database Version 10.3.37-MariaDB
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 8.0.26
Web Server Apache
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.10.11 Stable [ Daraja ] 14-August-2022 14:18 GMT

Appreciate your assistance in fixing this for me.
1 year 3 months ago #2747

Please Log in or Create an account to join the conversation.

Replied by Administrator on topic Warning: Undefined variable $itemId in

I have taken note of this now and I promise that our next version would have a permanent fix for this issue.

Quick Solution:

Simply create a hidden menu using our "All Videos" layout.

Hope this solved your issue! Please let me know if still the issue remains.
The following user(s) said Thank You: ypforista
1 year 3 months ago #2748

Please Log in or Create an account to join the conversation.

  • Posts: 2

Replied by ypforista on topic Warning: Undefined variable $itemId in

Administrator wrote: I have taken note of this now and I promise that our next version would have a permanent fix for this issue.

Quick Solution:

Simply create a hidden menu using our "All Videos" layout.

Hope this solved your issue! Please let me know if still the issue remains.


@Administrador

Thank you for the quick response. The issue was caused by a different mod that needed to be updated. We can close this thread.
The following user(s) said Thank You: Administrator
1 year 3 months ago #2749

Please Log in or Create an account to join the conversation.

Time to create page: 0.252 seconds

Business Address

PLUGINSWARE INTERACTIVE PVT LTD
Door No 2A, Venkateshwara Nagar,
1st Main Road, Velachery, Chennai,
Tamilnadu, India
Pincode: 600042
© 2013 - 2024 Pluginsware Interactive Private Limited. All Rights Reserved. The Joomla! name and logo is used under a limited license granted in the United States and other countries.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.