我已经为 joomla 2.5 版本创建了主题,并使用了 virtue-mart 作为购物车。一切正常。用户在 paypal 支付网关的帮助下从网站购买,并确认支付返回。但是当他们启用 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 创建了模板。究竟是什么问题。请告诉我
最佳答案
您似乎正在尝试为 Joomla 3 而不是 Joomla 2.5 设计模板。 供您引用,JHTML::bootstrap 仅在 Joomla 3 上受支持,但您说您正在为 Joomla 2.5 创建模板。 以防万一,您需要从代码中删除 JHTML::bootstrap;如果您想使用 Bootstrap ,则需要以其他方式使用它。
将 Bootstrap 添加到 Joomla:
<?php
$document = JFactory::getDocument();
// Adding bootstrap css
$document->addStyleSheet($url_to_css);
// Adding bootstrap javascript
$document->addScript($url_to_javascript);
?>
关于php - 不支持 Bootstrap 和 Paypal 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19996400/