Troubleshooting for the current version

#514 – Search Module not Working Properly After Adsmanager Update

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 15 January 2019 05:02 CET
mshihan
Can you please released a new update for fixing search result issues.
After updating 3.2.2 search result is not working properly.
Search result is showing with all the front page contents. (unassigned modules)
If I click on a joomla core menu and then click search button I am redirecting to not found page instead of search result page or all ads page.

If you cannot release a new version soon, can you please help me to remove all the new features that you have added to 3.2.2 both adsmanager and template.


Best Regards
Custom Fields
Joomla Version
3.9.1
PHP Version
7.1.25
Product
AdsManager
Product Version
3.2.2
Tuesday, 15 January 2019 08:08 CET
loic
Hello,

I will take a look at those issues today.

Sorry for the inconvenience.

Best regards.
 
Tuesday, 15 January 2019 18:02 CET
loic
Hello,

I answered your other tickets.

Here is the solution for the users that look for a solution here :
Open components/com_adsmanager/views/result/view.html.php, line 60 to 67 :
$menuParams = $menu->getParams();
		
		if($menuParams->get('menu-meta_description') != '') {
			$document->setDescription($menuParams->get('menu-meta_description'));
		}
		if($menuParams->get('menu-meta_keywords') != '') {
			$document->setMetadata('keywords', $menuParams->get('menu-meta_keywords'));
		}


Replace it by :
if(method_exists($menus,'getActive') && $menu != null) {
			$menuParams = $menu->getParams();
			
			if($menuParams->get('menu-meta_description') != '') {
				$document->setDescription($menuParams->get('menu-meta_description'));
			}
			if($menuParams->get('menu-meta_keywords') != '') {
				$document->setMetadata('keywords', $menuParams->get('menu-meta_keywords'));
			}
		}


And line 235 to 239 :
if($menuParams->get('page_title') != '') {
			$document->setTitle( $menuParams->get('page_title') );
		} else {
			$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE').  JText::_('ADSMANAGER_PAGE_RESULT') );
		}


Replace it by :
if(method_exists($menus,'getActive') && $menu != null) {
			$menuParams = $menu->getParams();

			if($menuParams->get('page_title') != '') {
				$document->setTitle( $menuParams->get('page_title') );
			} else {
				$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE').  JText::_('ADSMANAGER_PAGE_RESULT') );
			}
		} else {
			$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE').  JText::_('ADSMANAGER_PAGE_RESULT') );
		}


Best regards.
 
Wednesday, 16 January 2019 06:16 CET
mshihan
Everything works fine now. Thank you very much.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.