Problems with T3 framework and 4SEF component

aleroman

Active member
XNullUser
Joined
Sep 12, 2022
Messages
140
Reaction score
26
Points
28
Location
Italy
NullCash
390
Dear all,
I'm opening this thread to report a problem in Joomla using the T3 framework and 4SEF, the SEF URL component, heir of the largely used SF404SEF, developed by Weeblr. T3 is Joomla Template Framework built with Bootstrap 3 and developed for Joomla by JoomlArt.

Since SF404SEF has been dismissed with Joomla 4, I'm now using 4SEF.
I'm using the release 1.0.7.331, which is working properly in my website and coexists with T3 without problems.
Unfortunately, all the newer versions give problems, and brake the site pagination.

This is also documented by Weeblr (developer of 4SEF), here:
https://weeblr.com/doc/products.forsef/current/troubleshooting/

Pagination is broken when using a T3-based template

T3 is one of Joomlart template framework and is commonly found on Joomla 3 websites. Due to using a non-standard files layout, they use a technique to force Joomla into loading their file meant to style pagination.

However, 4SEF also has to make Joomla use 4SEF own Pagination class. Depending on your site setup, either Joomlart or 4SEF Pagination override is used but not both resulting in:

if 4SEF override is used, pagination works but is not styled properly
if Joomla override is used, pagination just does not work at all
This can be fixed as follows:

ensure 4SEF system plugin is ordered before Joomlart T3 system plugin
make sure to use 4SEF version 1.0.3 or more recent
using FTP or your hosting company file manager, open the file /libraries/weeblr/forsef_functions.php (create it if it does not exist)
At the top of that file, make sure you see:"


<?php
/**
* 4SEF hooks file
*
* You can use 2 variables to access 4SEF content:
*
* $factory: access variables
* $hooks: add handlers
*/

// no direct access
defined('WBLIB_EXEC') || die;

at the bottom of that file, add the following:

/**
* Filter path to pagination chromePath file.
*
* @package 4SEF\filter\content
* @var forsef_pagination_chrome_path
* @since 1.0.3
*
* @param string $rules Path to an (optional) pagination chrome file.
*
* @return string
*
*/
$hooks->add(
'forsef_pagination_chrome_path',
function ($chromePath) {

$pathHelper = JPATH_ROOT . '/plugins/system/t3/includes/core/path.php';
if (file_exists($pathHelper))
{
include_once $pathHelper;
$chromePath = \T3Path::getPath('html/pagination.php');
}

return $chromePath;
}
);

However, the work-around is not working. :-(

I'm testing the new realease 2.1.0.544, which is compliant to Joomla 5, because I would like to upgrade the website (rel.1.0.7.331 is not compliant).

Did someone face the same problem?
If so, how did you solve it?

Thanks in advance for your feedbacks.

Cheers,
Ale
 

HelenaWitches

Member
XNullUser
Joined
Jan 24, 2021
Messages
365
Reaction score
8
Points
18
NullCash
8
Dear all,
I'm opening this thread to report a problem in Joomla using the T3 framework and 4SEF, the SEF URL component, heir of the largely used SF404SEF, developed by Weeblr. T3 is Joomla Template Framework built with Bootstrap 3 and developed for Joomla by JoomlArt.

Since SF404SEF has been dismissed with Joomla 4, I'm now using 4SEF.
I'm using the release 1.0.7.331, which is working properly in my website and coexists with T3 without problems.
Unfortunately, all the newer versions give problems, and brake the site pagination.

This is also documented by Weeblr (developer of 4SEF), here:
https://weeblr.com/doc/products.forsef/current/troubleshooting/

Pagination is broken when using a T3-based template

T3 is one of Joomlart template framework and is commonly found on Joomla 3 websites. Due to using a non-standard files layout, they use a technique to force Joomla into loading their file meant to style pagination.

However, 4SEF also has to make Joomla use 4SEF own Pagination class. Depending on your site setup, either Joomlart or 4SEF Pagination override is used but not both resulting in:

if 4SEF override is used, pagination works but is not styled properly
if Joomla override is used, pagination just does not work at all
This can be fixed as follows:

ensure 4SEF system plugin is ordered before Joomlart T3 system plugin
make sure to use 4SEF version 1.0.3 or more recent
using FTP or your hosting company file manager, open the file /libraries/weeblr/forsef_functions.php (create it if it does not exist)
At the top of that file, make sure you see:"



at the bottom of that file, add the following:




However, the work-around is not working. :-(

I'm testing the new realease 2.1.0.544, which is compliant to Joomla 5, because I would like to upgrade the website (rel.1.0.7.331 is not compliant).

Did someone face the same problem?
If so, how did you solve it?

Thanks in advance for your feedbacks.

Cheers,
Ale
same problem just wait a update, joomla 4 is good the 5 suck
 

aleroman

Active member
XNullUser
Joined
Sep 12, 2022
Messages
140
Reaction score
26
Points
28
Location
Italy
NullCash
390
Don't try to set up Joomla 5, it's very crude. Already have e4 Framework
Dear @Alan2020,
thanks for your suggestion.
I guess you're right; it would maybe be better to wait.
Post automatically merged:

same problem just wait a update, joomla 4 is good the 5 suck
Dear @HelenawWitches,
thans for your feedback; I'm relieved I'm not the only one facing this issue. :)

Cheers,
Post automatically merged:

Dear all,
unfortunately, I'm having this issue still unresolved.
Was someone of you able to solve it?

Thanks in advance for your help!

Cheers,
Ale
 
Last edited:
Top