Page 1 of 1

Lise detailpage not working after update

Posted: Thu Nov 02, 2023 10:14 am
by rednose
On several sites I updated LISE to 1.5.6, everything worked fine, only on sites where I want to override the detailpage with the detailpage parameter, that doesn't work any more. ( I tested it on php 7.4 and php 8.2, same effect)

In the content I have p.e. {LISEPortfolio detailpage=webkontakt} , bevor the update no problem, after the update it goes only to the detailpage what is set under the options of the module. But with several catogory's I want to override this sometimes

I tested it with the removal of the mod_rewrite ( no pretty urls any more) and the override was functional again.
With the mod_rewrite: nothing. I have a basic htacces, no changes in the mod_rewrite rules

Code: Select all

<IfModule rewrite_module>
	RewriteEngine on
	# If your CMSMS installation is in a subdirectory of your domain, you need to specify the relative path (from the root of the domain) here.
	# In example: RewriteBase /[subdirectory name]
	RewriteBase /
	

	
	# Rewrites URLs in the form of /parent/child/grandchild but only rewrites if the requested URL is not a file or directory.
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
and I use the standard <a href="{$item->url}"

Is there any adjustment I have overseen? I looked in the help, but the parameter detailpage still exist.
When there is no quick solution, does anybody know, how I can exclude only the Lise modul in der htaccess from pretty url? (only until I found the solution)

I did the same on another site: before Lise 1.4.3 detailpage worked fine, only updated to Lise 1.5.6, changed nothing, and it didn't work anymore. If there is no page defined under options it takes by default the Start page.


Very grateful when somebody can help me

Re: Lise detailpage not working after update

Posted: Thu Nov 02, 2023 1:09 pm
by rednose
I have found a workaround, but it's not quite the most satisfying solution.
I've replaced in the template with if/else tag for the several cases the item-url with the link

<a href="index.php?mact=LISEAngebote,mc0d68,detail,1&mc0d68item={$item->alias}&mc0d68detailpage=behandlungsmethoden&mc0d68returnid=45&page=45" }"

I found the link, when I removed the mod_rewrite and saw that the only thing changes onthe same page is the $item-alias
Then i put the mod-rewrite in place again for the general website, so "only" my lise-items are now without it.

Anyhow, its only an emergency solution, when there is some general solution i would still be glad

Re: Lise detailpage not working after update

Posted: Sun Nov 26, 2023 5:54 pm
by webform
I can confirm this behavior.
I've filed a bug report: http://dev.cmsmadesimple.org/bug/view/12668