[SOLVED] Fatal error: Cannot redeclare class JPagination

More
7 years 11 months ago - 7 years 11 months ago #61991 by yopyop001
Hi,

With the latest version of FC, i have a fatal error in the category view :
Fatal error: Cannot redeclare class JPagination in /libraries/cms/pagination/pagination.php on line 17

I have make several tests and the error appears when i upgrade from FC v3.0.9(RC6c) to FC v3.0.10

I use the plazart Framework on this site
PHP 5.4.45
Joomla 3.4.8

And it's the same when upgrading to PHP 3.5.1
Last edit: 7 years 11 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #61992 by yopyop001
After commenting
Code:
jimport('cms.pagination.pagination');
in components/com_flexicontent/helpers/pagination.php, it works

May be we could add a control to check if the class Jpagination is already declared.

Regards

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #61994 by ggppdk
Hello

maybe we need to add this

- because some 3rd party extension, or the Joomla template is messing this up

... or there is an old Joomla file in your system and it gets loaded:
- this should no longer exist (some extension maybe loading):
libraries/joomla/html/pagination.php

1. does the above exist ? only this should: /libraries/cms/pagination/pagination.php
2. can you do a recursive text search in your system , using some text editor and search for:
class JPagination

in which files does it appear ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #61999 by ggppdk
Hello

i will change to this:
Code:
// Avoid problems with extensions that implement JPagination, instead of extending it, and have already load it if ( !class_exists('JPagination') ) { jimport('cms.pagination.pagination'); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 11 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.274 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline