Notifications
Clear all

Fatal Error when activitating

2 Posts
2 Users
0 Likes
2,209 Views
 Jan
(@xczechcom)
Customer Customer
Joined: 8 years ago
Posts: 4
Topic starter  

Hello,

I bought Advanced Content Pagination few months ago and I installed on one of my web. All OK. But I choose to cancel this web and I want use your plugin on the my main web. I install it and try to activate. But it triggered fatal error and this is outcome:

 

optionsSerialized = $optionsSerialized; $this->api = $api; } public function get_default_options() { return $this->optionsSerialized; } /** * Builds options page */ public function options_form() { if (isset($_POST['submit'])) { if (function_exists('current_user_can') && !current_user_can('manage_options')) { die(_e('Hacker?', 'advanced-content-pagination-pro')); } if (function_exists('check_admin_referer')) { check_admin_referer('acp_options_form'); } $this->optionsSerialized->acp_paging_on_off = isset($_POST['acp_paging_on_off']) ? $_POST['acp_paging_on_off'] : 0; $this->optionsSerialized->acp_wp_shortcode_for_acp_btns = isset($_POST['acp_wp_shortcode_for_acp_btns']) ? $_POST['acp_wp_shortcode_for_acp_btns'] : 0; $this->optionsSerialized->acp_wp_shortcode_pagination_view = $_POST['acp_wp_shortcode_pagination_view']; $this->optionsSerialized->acp_plugin_pagination_type = $_POST['acp_plugin_pagination_type']; $this->optionsSerialized->acp_paging_buttons_location = $_POST['acp_paging_buttons_location']; $this->optionsSerialized->acp_do_shortcodes_excerpts = isset($_POST['acp_do_shortcodes_excerpts']) ? $_POST['acp_do_shortcodes_excerpts'] : 0; $this->optionsSerialized->acp_excerpts_count = isset($_POST['acp_excerpts_count']) ? $_POST['acp_excerpts_count'] : 55; $this->optionsSerialized->acp_buttons_border_css = $_POST['acp_buttons_border_css']; $this->optionsSerialized->acp_buttons_background_css = $_POST['acp_buttons_background_css']; $this->optionsSerialized->acp_buttons_background_hover_css = $_POST['acp_buttons_background_hover_css']; $this->optionsSerialized->acp_buttons_font_css = $_POST['acp_buttons_font_css']; $this->optionsSerialized->acp_buttons_text_color_css = $_POST['acp_buttons_text_color_css']; $this->optionsSerialized->acp_buttons_title_size_css = $_POST['acp_buttons_title_size_css']; $this->optionsSerialized->acp_buttons_desc_size_css = $_POST['acp_buttons_desc_size_css']; $this->optionsSerialized->acp_buttons_prev_next = isset($_POST['acp_buttons_prev_next']) ? $_POST['acp_buttons_prev_next'] : 0; $this->optionsSerialized->acp_buttons_visual_style = $_POST['acp_buttons_visual_style']; $this->optionsSerialized->acpPhrasePrevious = isset($_POST['acpPhrasePrevious']) && ($phrasePrev = trim($_POST['acpPhrasePrevious'])) ? $phrasePrev : __('Previous', 'advanced-content-pagination'); $this->optionsSerialized->acpPhraseNext = isset($_POST['acpPhraseNext']) && ($phraseNext = trim($_POST['acpPhraseNext'])) ? $phraseNext : __('Next', 'advanced-content-pagination'); $this->optionsSerialized->acp_buttons_hover_text_color = isset($_POST['acp_buttons_hover_text_color']) ? $_POST['acp_buttons_hover_text_color'] : '#000000'; $this->optionsSerialized->acp_buttons_is_arrow_fixed = isset($_POST['acp_buttons_is_arrow_fixed']) ? $_POST['acp_buttons_is_arrow_fixed'] : '0'; $this->optionsSerialized->acp_active_button_border_css = $_POST['acp_active_button_border_css']; $this->optionsSerialized->acp_active_button_background_css = $_POST['acp_active_button_background_css']; $this->optionsSerialized->acp_active_button_text_color_css = $_POST['acp_active_button_text_color_css']; $this->optionsSerialized->acp_load_container_css = isset($_POST['acp_load_container_css']) ? $_POST['acp_load_container_css'] : 'rgba(174,174,174,0.7)'; $this->optionsSerialized->acp_custom_css = isset($_POST['acp_custom_css']) ? $_POST['acp_custom_css'] : ''; $this->optionsSerialized->acp_jcarousel_wrapping = isset($_POST['acp_jcarousel_wrapping']) ? $_POST['acp_jcarousel_wrapping'] : 'circular'; $this->optionsSerialized->acp_arrows_bg = isset($_POST['acp_arrows_bg']) ? $_POST['acp_arrows_bg'] : '#333333'; $this->optionsSerialized->acp_arrows_hover_bg = isset($_POST['acp_arrows_hover_bg']) ? $_POST['acp_arrows_hover_bg'] : '#000000'; $this->optionsSerialized->acp_arrows_color = isset($_POST['acp_arrows_color']) ? $_POST['acp_arrows_color'] : '#ffffff'; $this->optionsSerialized->acp_arrows_hover_color = isset($_POST['acp_arrows_hover_color']) ? $_POST['acp_arrows_hover_color'] : '#ffffff'; $this->optionsSerialized->updateOptions(); } include_once 'html-options.php'; }}?> shortcode generates WP pagination buttons else the plugin pagination buttons public $acp_wp_shortcode_pagination_view; // if 1 default pagination else tabbed pagination public $acp_plugin_pagination_type; // if 1 reload page else ajax public $acp_paging_buttons_location; // if 1 top else if 2 bottom else both public $acp_do_shortcodes_excerpts; // do shortcodes in excerpt or not public $acp_excerpts_count; // excerpt length in words // PAGINATION BUTTONS STYLES public $acp_buttons_border_css; // pagination buttons border css public $acp_buttons_background_css; // pagination buttons background css public $acp_buttons_background_hover_css; // pagination buttons hover background css public $acp_buttons_font_css; // pagination buttons font css public $acp_buttons_text_color_css; // pagination buttons text color css public $acp_buttons_title_size_css; // pagination buttons text size css from 10px to 20px public $acp_buttons_desc_size_css; // pagination buttons text size css from 10px to 20px public $acp_buttons_description_maxlength_css; // pagination buttons description max length characters public $acp_buttons_prev_next; // if checked display only prev next buttons public $acp_buttons_visual_style; // pagination buttons visual style public $acp_buttons_hover_text_color; // default - black public $acp_buttons_is_arrow_fixed; // if checked jcarousel buttons arrows are fixed else float // PAGINATION ACTIVE BUTTON STYLES public $acp_active_button_border_css; // pagination active button border css public $acp_active_button_background_css; // pagination active button background css public $acp_active_button_text_color_css; // pagination active button text color css // jCarousel public $acp_jcarousel_wrapping; public $acp_arrows_bg; public $acp_arrows_hover_bg; public $acp_arrows_color; public $acp_arrows_hover_color; // LOADER CONTAINER STYLES public $acp_load_container_css; //CUSTOM CSS public $acp_custom_css; /** * Phrases */ public $acpPhrasePrevious; public $acpPhraseNext; public function __construct() { $this->addOptions(); $this->initOptions(get_option($this->acp_option_slug)); } public function initOptions($serialize_options) { $options = unserialize($serialize_options); $this->acp_paging_on_off = $options['acp_paging_on_off']; $this->acp_wp_shortcode_for_acp_btns = $options['acp_wp_shortcode_for_acp_btns']; $this->acp_wp_shortcode_pagination_view = $options['acp_wp_shortcode_pagination_view']; $this->acp_plugin_pagination_type = $options['acp_plugin_pagination_type']; $this->acp_paging_buttons_location = $options['acp_paging_buttons_location']; $this->acp_do_shortcodes_excerpts = isset($options['acp_do_shortcodes_excerpts']) ? $options['acp_do_shortcodes_excerpts'] : 2; $this->acp_excerpts_count = isset($options['acp_excerpts_count']) ? $options['acp_excerpts_count'] : 55; $this->acp_buttons_border_css = $options['acp_buttons_border_css']; $this->acp_buttons_background_css = $options['acp_buttons_background_css']; $this->acp_buttons_background_hover_css = $options['acp_buttons_background_hover_css']; $this->acp_buttons_font_css = $options['acp_buttons_font_css']; $this->acp_buttons_text_color_css = $options['acp_buttons_text_color_css']; $this->acp_buttons_title_size_css = $options['acp_buttons_title_size_css']; $this->acp_buttons_desc_size_css = $options['acp_buttons_desc_size_css']; $this->acp_buttons_description_maxlength_css = $options['acp_buttons_description_maxlength_css']; $this->acp_buttons_prev_next = isset($options['acp_buttons_prev_next']) ? $options['acp_buttons_prev_next'] : 0; $this->acp_buttons_visual_style = $options['acp_buttons_visual_style']; $this->acpPhrasePrevious = isset($options['acpPhrasePrevious']) && ($phrasePrev = trim($options['acpPhrasePrevious'])) ? $phrasePrev : __('Previous', 'advanced-content-pagination-pro'); $this->acpPhraseNext = isset($options['acpPhraseNext']) && ($phraseNext = trim($options['acpPhraseNext'])) ? $phraseNext : __('Next', 'advanced-content-pagination-pro'); $this->acp_buttons_hover_text_color = $options['acp_buttons_hover_text_color']; $this->acp_buttons_is_arrow_fixed = $options['acp_buttons_is_arrow_fixed']; $this->acp_active_button_border_css = $options['acp_active_button_border_css']; $this->acp_active_button_background_css = $options['acp_active_button_background_css']; $this->acp_active_button_text_color_css = $options['acp_active_button_text_color_css']; $this->acp_load_container_css = $options['acp_load_container_css']; $this->acp_custom_css = isset($options['acp_custom_css']) ? $options['acp_custom_css'] : ''; $this->acp_jcarousel_wrapping = isset($options['acp_jcarousel_wrapping']) ? $options['acp_jcarousel_wrapping'] : ''; $this->acp_arrows_bg = isset($options['acp_arrows_bg']) ? $options['acp_arrows_bg'] : '#333333'; $this->acp_arrows_hover_bg = isset($options['acp_arrows_hover_bg']) ? $options['acp_arrows_hover_bg'] : '#000000'; $this->acp_arrows_color = isset($options['acp_arrows_color']) ? $options['acp_arrows_color'] : '#ffffff'; $this->acp_arrows_hover_color = isset($options['acp_arrows_hover_color']) ? $options['acp_arrows_hover_color'] : '#ffffff'; } public function toArray() { $options = array( 'acp_paging_on_off' => $this->acp_paging_on_off, 'acp_wp_shortcode_for_acp_btns' => $this->acp_wp_shortcode_for_acp_btns, 'acp_wp_shortcode_pagination_view' => $this->acp_wp_shortcode_pagination_view, 'acp_plugin_pagination_type' => $this->acp_plugin_pagination_type, 'acp_paging_buttons_location' => $this->acp_paging_buttons_location, 'acp_do_shortcodes_excerpts' => $this->acp_do_shortcodes_excerpts, 'acp_excerpts_count' => $this->acp_excerpts_count, 'acp_buttons_border_css' => $this->acp_buttons_border_css, 'acp_buttons_background_css' => $this->acp_buttons_background_css, 'acp_buttons_background_hover_css' => $this->acp_buttons_background_hover_css, 'acp_buttons_font_css' => $this->acp_buttons_font_css, 'acp_buttons_text_color_css' => $this->acp_buttons_text_color_css, 'acp_buttons_title_size_css' => $this->acp_buttons_title_size_css, 'acp_buttons_desc_size_css' => $this->acp_buttons_desc_size_css, 'acp_buttons_description_maxlength_css' => $this->acp_buttons_description_maxlength_css, 'acp_buttons_prev_next' => $this->acp_buttons_prev_next, 'acp_buttons_visual_style' => $this->acp_buttons_visual_style, 'acpPhrasePrevious' => $this->acpPhrasePrevious, 'acpPhraseNext' => $this->acpPhraseNext, 'acp_buttons_hover_text_color' => $this->acp_buttons_hover_text_color, 'acp_buttons_is_arrow_fixed' => $this->acp_buttons_is_arrow_fixed, 'acp_active_button_border_css' => $this->acp_active_button_border_css, 'acp_active_button_background_css' => $this->acp_active_button_background_css, 'acp_active_button_text_color_css' => $this->acp_active_button_text_color_css, 'acp_load_container_css' => $this->acp_load_container_css, 'acp_custom_css' => $this->acp_custom_css, 'acp_jcarousel_wrapping' => $this->acp_jcarousel_wrapping, 'acp_arrows_bg' => $this->acp_arrows_bg, 'acp_arrows_hover_bg' => $this->acp_arrows_hover_bg, 'acp_arrows_color' => $this->acp_arrows_color, 'acp_arrows_hover_color' => $this->acp_arrows_hover_color ); return $options; } public function updateOptions() { update_option($this->acp_option_slug, serialize($this->toArray())); } public function addOptions() { $options = array( 'acp_paging_on_off' => '1', // ACP content pagination, if 0 paging off else paging on 'acp_wp_shortcode_for_acp_btns' => '1', // if 0 shortcode generates WP pagination buttons else the plugin pagination buttons 'acp_wp_shortcode_pagination_view' => '2', // if 1 default pagination else tabbed pagination 'acp_plugin_pagination_type' => '1', // if 1 reload page else ajax 'acp_paging_buttons_location' => '3', // if 1 top else if 2 bottom else both 'acp_do_shortcodes_excerpts' => '1', // do shortcodes in excerpt or not 'acp_excerpts_count' => '55', // excerpt length in words 'acp_buttons_border_css' => '1px solid #cccccc', // pagination buttons border css 'acp_buttons_background_css' => '#dbdbdb', // pagination buttons background css 'acp_buttons_background_hover_css' => '#e3e3e3', // pagination buttons hover background css 'acp_buttons_font_css' => 'arial', // pagination buttons font css 'acp_buttons_text_color_css' => '#333333', // pagination buttons text color css 'acp_buttons_title_size_css' => '13px', // pagination buttons text size css from 10px to 20px 'acp_buttons_desc_size_css' => '12px', // pagination buttons text size css from 10px to 20px 'acp_buttons_description_maxlength_css' => '65', // pagination buttons description max length in words 'acp_buttons_prev_next' => '0', // show only prev next buttons 'acp_buttons_visual_style' => '3', // pagination buttons visual style 'acpPhrasePrevious' => __('Previous', 'advanced-content-pagination-pro'), // pagination buttons visual style 'acpPhraseNext' => __('Next', 'advanced-content-pagination-pro'), // pagination buttons visual style 'acp_buttons_hover_text_color' => '#000000', 'acp_buttons_is_arrow_fixed' => '0', // PAGINATION ACTIVE BUTTON STYLES 'acp_active_button_border_css' => '1px solid #cccccc', // pagination active button border css 'acp_active_button_background_css' => '#ffffff', // pagination active button background css 'acp_active_button_text_color_css' => '#333333', 'acp_load_container_css' => 'rgba(174,174,174,0.7)', 'acp_custom_css' => '', //jCarousel 'acp_jcarousel_wrapping' => 'circular', 'acp_arrows_bg' => '#333333', 'acp_arrows_hover_bg' => '#000000', 'acp_arrows_color' => '#ffffff', 'acp_arrows_hover_color' => '#ffffff', ); add_option($this->acp_option_slug, serialize($options)); }}?> Fatal error: Class 'ACPOptionsSerialized' not found in /var/www/clients/client1/web3/web/wp-content/plugins/advanced-content-pagination-pro/acp.php on line 51

Can you help me? How I can activate plugin?


   
Quote
 Jan
(@xczechcom)
Customer Customer
Joined: 8 years ago
Posts: 4
Topic starter  

I would like to add ... free version works perfect


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4176
 

Hi Jan,

we don't see Fatal Error message,you've only left codes. Also please make sure the Free version is deactivated before installed the Pro version.


   
ReplyQuote
Share:
Scroll to top