Flexicontent Error 500 after Update Joomla 3.10.0

More
2 years 8 months ago #80585 by coerter
After update Joomla 3.10.0 Site breaks with the following Erros:

Warning: Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in XXXXXXXX/cms/components/com_flexicontent/flexicontent.php on line 71

Warning: Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in XXXXXXXs/cms/components/com_flexicontent/flexicontent.php on line 71

Warning: Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) inXXXXXX/cms/components/com_flexicontent/flexicontent.php on line 71

Warning: require_once(XXXXXXXXXX/cms/administratorDScomponentsDScom_flexicontentDSdefineconstants.php): failed to open stream: No such file or directory in XXXXXXXXXXcms/components/com_flexicontent/flexicontent.php on line 71

Fatal error: require_once(): Failed opening required '/XXX/XXXXXXXXX/cms/administratorDScomponentsDScom_flexicontentDSdefineconstants.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in /XXXXXXXXXXXXX/cms/components/com_flexicontent/flexicontent.php on line 71

Please help.

with regards

coweb

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

More
2 years 8 months ago - 2 years 8 months ago #80591 by ggppdk
Hello

Unfortunately for all broken websites the only way to fix is a manual edit
Only if Flexicontent v3.3.11 is install prior to Joomla update ,  then next manual fix will not be needed

To fix website


1. Edit File  administrator/components/com_flexicontent/definecontants.php

At line 63, replace 3.9.99  with 3.99.99 

if (!defined('FLEXI_J40GE')) define('FLEXI_J40GE', version_compare( $jversion->getShortVersion(), '3.99.99', 'g' ) );


2.  Go to Extension/Manage Database and click Fix
3.
Then upgrade to FC v3.3.11


-- 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: 2 years 8 months ago by ggppdk.

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

More
2 years 8 months ago #80597 by iamrobert
Hi

I am still getting error after changing code:

Fatal error: Cannot declare class JEventDispatcher, because the name is already in use in:
ok21\administrator\components\com_flexicontent\defineconstants.php on line 107

Have updated to:
Code:
if (!defined('FLEXI_J40GE'))   define('FLEXI_J40GE', version_compare( $jversion->getShortVersion(), '3.99.99', 'g' ) );

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

More
2 years 8 months ago - 2 years 8 months ago #80598 by iamrobert
Hi,

I have overwrote the defineconstants.php file from 3.11:
github.com/FLEXIcontent/flexicontent-cck.../defineconstants.php

but the error persists:


Any other ideas?


If anyone else is stuck. I reverted to an older version of Joomla by overwriting all the files:

Joomla_3.9.x_to_3.9.28-Stable-Patch_Package.zip
 
Last edit: 2 years 8 months ago by iamrobert.

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

More
2 years 8 months ago - 2 years 8 months ago #80601 by ggppdk
Hello

there is 1 more case in IF YOU ARE using master branch (FC v4)
components/com_flexicontent/tasks/core.php
which i have fixed in github

but i suspect the above is not the problem

In your website maybe FLEXI_J40GE is already defined in some custom code ?

Can you can do a text search for
define('FLEXI_J40GE'
in your website to see if it is also defined elsewhere


-- 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: 2 years 8 months ago by ggppdk.

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

More
2 years 8 months ago #80603 by iamrobert
Hi ggppdk,

Thanks - for the fast response.

I have done a full search and its only that one in defineconstants.php:

if (!defined('FLEXI_J40GE'))   define('FLEXI_J40GE', version_compare( $jversion->getShortVersion(), '3.99.99', 'g' ) );

I also limited it to: FLEXI_J40GE and still only the above.

I haven't tried upgrading my other sites yet. So - not sure if it's isolated to this one or something else.

Cheers,

Robert



 

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.304 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