Fatal error: Uncaught Error: Class 'RLFeedFactoryCommon' not found
Fatal error: Uncaught Error: Class 'RLFeedFactoryCommon' not found
RLProductsRSSGMFeed - 在服务器上安装此扩展后出现错误,但相同的扩展在本地服务器上运行
Fatal error: Uncaught Error: Class 'RLFeedFactoryCommon' not found in /home/xxx/public_html/oc/project/system/library/RLFeedGMFactory.php:3
system\library\RLFeedGMFactory.php
class RLFeedGMFactory extends RLFeedFactoryCommon
{
const FEED_KEY_TOKEN = 'new_products_rss';
//const FEED_KEY_TOKEN = 'RLProductsRSSGMFeed';
private $show_price;
private $show_image;
private $image_width;
private $image_height;
public function BootstrapFeed($controller, $key_hub)
system\library\RLFeedFactoryCommon.php
class RLFeedFactoryCommon
{
const FILTER_LP = 'latest-products';
const FILTER_PP = 'popular-products';
const FILTER_BS = 'best-sellers';
public $limit;
public $include_tax;
public $currency;
public $logo;
public $feed_url;
public $feed_name;
public $shop_title;
public $feed_description;
public $lang;
/**
* @var mixed
*/
public $filter;
admin\controller\extension\feed\new_products_rss.php
class ControllerExtensionFeedNewProductsRSS extends Controller
{
public $error = array();
protected $keyFactory;
protected $feedFactory;
public function index(){
$this->load->library(RLFeedGMFactory::class);
$this->feedFactory = new RLFeedGMFactory();
$this->feedFactory->bootstrap_admin_view($this);
}
请帮我解决这个问题。
如果您需要更多信息,我会给您
谢谢。
我已经解决了这个问题。
实际上,RLFeedGMFactory.php 无法从 RLFeedFactoryCommon.php 中找到 class 所以我只是在 RLFeedGMFactory.php
上添加了一行
require_once '/home/citytech/public_html/oc/sleeve-modding/system/library/RLFeedFactoryCommon.php';
class RLFeedGMFactory extends RLFeedFactoryCommon
{
const FEED_KEY_TOKEN = 'new_products_rss';
//const FEED_KEY_TOKEN = 'RLProductsRSSGMFeed';
private $show_price;
private $show_image;
private $image_width;
private $image_height;
public function BootstrapFeed($controller, $key_hub)
谢谢。
RLProductsRSSGMFeed - 在服务器上安装此扩展后出现错误,但相同的扩展在本地服务器上运行
Fatal error: Uncaught Error: Class 'RLFeedFactoryCommon' not found in /home/xxx/public_html/oc/project/system/library/RLFeedGMFactory.php:3
system\library\RLFeedGMFactory.php
class RLFeedGMFactory extends RLFeedFactoryCommon { const FEED_KEY_TOKEN = 'new_products_rss'; //const FEED_KEY_TOKEN = 'RLProductsRSSGMFeed'; private $show_price; private $show_image; private $image_width; private $image_height; public function BootstrapFeed($controller, $key_hub)
system\library\RLFeedFactoryCommon.php
class RLFeedFactoryCommon { const FILTER_LP = 'latest-products'; const FILTER_PP = 'popular-products'; const FILTER_BS = 'best-sellers'; public $limit; public $include_tax; public $currency; public $logo; public $feed_url; public $feed_name; public $shop_title; public $feed_description; public $lang; /** * @var mixed */ public $filter;
admin\controller\extension\feed\new_products_rss.php
class ControllerExtensionFeedNewProductsRSS extends Controller { public $error = array(); protected $keyFactory; protected $feedFactory; public function index(){ $this->load->library(RLFeedGMFactory::class); $this->feedFactory = new RLFeedGMFactory(); $this->feedFactory->bootstrap_admin_view($this); }
请帮我解决这个问题。 如果您需要更多信息,我会给您
谢谢。
我已经解决了这个问题。 实际上,RLFeedGMFactory.php 无法从 RLFeedFactoryCommon.php 中找到 class 所以我只是在 RLFeedGMFactory.php
上添加了一行require_once '/home/citytech/public_html/oc/sleeve-modding/system/library/RLFeedFactoryCommon.php';
class RLFeedGMFactory extends RLFeedFactoryCommon
{
const FEED_KEY_TOKEN = 'new_products_rss';
//const FEED_KEY_TOKEN = 'RLProductsRSSGMFeed';
private $show_price;
private $show_image;
private $image_width;
private $image_height;
public function BootstrapFeed($controller, $key_hub)
谢谢。