Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / message erreur sur rechercher

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

message erreur sur rechercher

More
11 years 5 months ago #11527 by ferhatyanis
message erreur sur rechercher was created by ferhatyanis
Bonjour,
quand je lance une recherche j'ai ce message d'erreur

conciergeriebordeaux.reseausolidaire.fr/...es-rapide/rechercher

Notice: Undefined variable: content in /home/reseaus8/public_html/conciergeriebordeaux/components/com_adsmanager/views/result/tmpl/default.php on line 92

Notice: Trying to get property of non-object in /home/reseaus8/public_html/conciergeriebordeaux/components/com_adsmanager/lib/link.php on line 16
More
11 years 5 months ago #11552 by loic
Replied by loic on topic message erreur sur rechercher
Bonjour,

Pouvez vous me donner la ligne pour la première erreur ? Je ne l'ai pas dans mon code.

La seconde erreur est certainement provoquée par la première.

Cordialement.
More
11 years 5 months ago #11562 by ferhatyanis
Replied by ferhatyanis on topic message erreur sur rechercher
1 ligne : <?php echo TLink::getPMSLink($content); ?>

2 ligne d'erreur :
if ($conf->display_fullname == 1)
$pmsText= sprintf(JText::_('ADSMANAGER_PMS_FORM'),$content->fullname); (içiest la ligne 16)
else
More
11 years 5 months ago #11566 by catalinads
Replied by catalinads on topic message erreur sur rechercher
How you get that line on the result view template ?
In normal way that line doesnt exists there ... it is on the details view template. There is used to contact users via PMs.. in adsmanager case via uddeim.

You should make a backup when you make an override of the template. And better is to make it in the template folder and in this case when you will update adsmanager .. will be no changes there
More
11 years 5 months ago #11581 by loic
Replied by loic on topic message erreur sur rechercher
Hello,

Catalinads, we've done some work on the website of Ferhatyanis, so it may be related to that :).

Ferhatyanis, la variable $content n'existe pas dans la page de résultat default.php, c'est pour ça que l'erreur apparaît.

Essayez plutot de mettre la ligne <?php echo TLink::getPMSLink($content); ?> à la ligne 120 du fichier default_list.php juste avant le </td>

Cordialement.
More
11 years 5 months ago - 11 years 5 months ago #11668 by ferhatyanis
Replied by ferhatyanis on topic message erreur sur rechercher
bonjour et merci pour votre aide mais le problème persiste ::
(dans le fichier : /components/com_adsmanager/views/result/tmpl/default_list.php)

<?php
/**
* @package AdsManager
* @copyright Copyright (C) 2010-2014 Juloa.com. All rights reserved.
* @license GNU/GPL
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
?>
<div class="container-fluid">
<table class="adsmanager_table table table-striped">
<tr>
<th><?php echo JText::_('ADSMANAGER_CONTENT'); ?>
<?php /*<a href="<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&order=5&orderdir=ASC");?>"><img src="<?php echo $this->baseurl ?>administrator/images/sort_asc.png" alt="+" /></a>
<a href="<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&order=5&orderdir=DESC");?>"><img src="<?php echo $this->baseurl ?>administrator/images/sort_desc.png" alt="-" /></a>
*/?></th>
<?php
foreach($this->columns as $col)
{
echo "<th class='hidden-phone'>".JText::_($col->name);
/*$order = @$this->fColumns[$col->id][0]->fieldid;
?>
<a href="<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&order=$order&orderdir=ASC");?>"><img src="<?php echo $this->baseurl ?>administrator/images/sort_asc.png" alt="+" /></a>
<a href="<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&order=$order&orderdir=DESC");?>"><img src="<?php echo $this->baseurl ?>administrator/images/sort_desc.png" alt="-" /></a>
*/?>
<?php echo "</th>";
}
?>
<th class="hidden-phone"><?php echo JText::_('ADSMANAGER_DATE'); ?>
<?php /*<a href="<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&order=orderdir=ASC");?>"><img src="<?php echo $this->baseurl ?>administrator/images/sort_asc.png" alt="+" /></a>
<a href="<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&order=orderdir=DESC");?>"><img src="<?php echo $this->baseurl ?>administrator/images/sort_desc.png" alt="-" /></a>
*/?>
</th>
</tr>
<?php
foreach($this->contents as $content)
{
$linkTarget = TRoute::_( "index.php?option=com_adsmanager&view=details&id=".$content->id."&catid=".$content->catid);
if (function_exists('getContentClass'))
$classcontent = getContentClass($content,"list");
else
$classcontent = "";
?>
<tr class="adsmanager_table_description <?php echo $classcontent;?>">
<td class="column_desc">
<h4 class="no-margin-top">
<?php echo '<a href="'.$linkTarget.'">'.$content->ad_headline.'</a>'; ?>
<span class="adsmanager-cat"><?php echo "(".$content->parent." / ".$content->cat.")"; ?></span>
</h4>
<?php
if (isset($content->images[0])) {
echo "<a href='".$linkTarget."'><img class='ad-image' name='ad-image".$content->id."' src='".$this->baseurl."images/com_adsmanager/ads/".$content->images[0]->thumbnail."' alt=\"".htmlspecialchars($content->ad_headline)."\" /></a>";
} else if ($this->conf->nb_images > 0) {
echo "<a href='".$linkTarget."'><img class='ad-image' src='".ADSMANAGER_NOPIC_IMG."' alt='nopic' /></a>";
}
?>
<div>
<?php
$content->ad_text = str_replace ('<br />'," ",$content->ad_text);
$af_text = JString::substr($content->ad_text, 0, 100);
if (strlen($content->ad_text)>100) {
$af_text .= "[...]";
}
echo $af_text;
?>
</div>
</td>
<?php
foreach($this->columns as $col) {
echo '<td class="tdcenter column_'.$col->id.' hidden-phone">';
if (isset($this->fColumns[$col->id]))
foreach($this->fColumns[$col->id] as $field)
{
$c = $this->field->showFieldValue($content,$field);
if (($c !== "")&&($c !== null)) {
$title = $this->field->showFieldTitle(@$content->catid,$field);
if ($title != "")
echo "<b>".htmlspecialchars($title)."</b>: ";
echo "$c<br/>";
}
}
echo "</td>";
}
?>
<td class="tdcenter column_date hidden-phone">
<?php
$iconflag = false;
if (($this->conf->show_new == true)&&($this->isNewcontent($content->date_created,$this->conf->nbdays_new))) {
echo "<div class='text-center'><img alt='new' src='".$this->baseurl."components/com_adsmanager/images/new.gif' /> ";
$iconflag = true;
}
if (($this->conf->show_hot == true)&&($content->views >= $this->conf->nbhits)) {
if ($iconflag == false)
echo "<div class='text-center'>";
echo "<img alt='hot' src='".$this->baseurl."components/com_adsmanager/images/hot.gif' />";
$iconflag = true;
}
if ($iconflag == true)
echo "</div>";
echo $this->reorderDate($content->date_created);
?>
<br />
<?php
if ($content->userid != 0)
{
echo JText::_('ADSMANAGER_FROM')." ";

$target = TLink::getUserAdsLink($content->userid);

if ($this->conf->display_fullname == 1)
echo "<a href='".$target."'>".$content->fullname."</a><br/>";
else
echo "<a href='".$target."'>".$content->user."</a><br/>";
}
?>
<?php echo sprintf(JText::_('ADSMANAGER_VIEWS'),$content->views); ?>
<?php echo TLink::getPMSLink($content); ?>
</td>
</tr>
<?php
}
?>
</table>
</div>
Last edit: 11 years 5 months ago by ferhatyanis.
Moderators: perry
Time to create page: 0.054 seconds
Powered by Kunena Forum