1

我已经为 joomla 2.5 版本创建了我的主题,并使用了美德商城作为购物车。每件事都运行良好。用户在贝宝支付网关的帮助下从网站购买,并确认支付退货。但是当他们启用 IPN 通知 URL 时,Paypal 会发送一封邮件,例如

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component

/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component

当我单击此链接时,它将显示

500 - JHtml: :bootstrap not supported. File not found.

这个错误。我刚刚为 joomla 2.5 创建了我的模板。到底是什么问题。请告诉我

4

1 回答 1

0

看来您正在尝试为 Joomla 3 设计模板,而不是为 Joomla 2.5。供您参考,JHTML::bootstrap 仅在 Joomla 3 上支持,但您说您正在为 Joomla 2.5 创建模板。以防万一,您需要从代码中删除 JHTML::bootstrap;如果要使用引导程序,则需要以另一种方式使用它。

将引导程序添加到 Joomla:

<?php
$document = JFactory::getDocument();

// Adding bootstrap css
$document->addStyleSheet($url_to_css);

// Adding bootstrap javascript
$document->addScript($url_to_javascript);
?>
于 2014-01-15T10:33:31.403 回答