WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 01.03.2021 17:37:39

ivankeud
Mitglied

Search trouble with Bakery

Hello all,

I tested Bakery 1.8.9 with WBCE 1.4.5 and I have some trouble with the search.
When I search something, the link of all the results are the home page of my shop

For example, in my demo shop page .../demo-shop.php
The results are always :  .../demo-shop.php?searchresult=1&sstring=keyword#wbce_1

instead of : .../bakery/page-product.php?searchresult=1&sstring=keyword#wbce_1

Any idea ?

Thanks

Offline

#2 01.03.2021 21:41:03

florian
Administrator

Re: Search trouble with Bakery

Hm, I can't reproduce that issue.
Are you testing on a real server or on a local test environement?
Which PHP version is running?
Are there any entries in the error log?


Code allein macht nicht glücklich. Jetzt spenden!

Offline

#3 02.03.2021 09:11:25

ivankeud
Mitglied

Re: Search trouble with Bakery

Hello

I tried on rel server, on different version of PHP.

In the error log :
[Warning] /modules/bakery/search.php:[60] from /search/search.php:[431] bakery_search "preg_replace(): No ending delimiter '/' found"

In search.php, there is

$page_link = preg_replace('/^\\'.PAGES_DIRECTORY.'/', '', $res['link'], 1);
...
'page_link' => $page_link,


It works if I use directly :
'page_link' => $res['link'],

Offline

#4 02.03.2021 09:29:13

florian
Administrator

Re: Search trouble with Bakery

No real idea, sorry. Did you apply any changes to the general settings (server settings), i.e. page spacer / pages directory?
Or any .htaccess based URL rewriting?


Code allein macht nicht glücklich. Jetzt spenden!

Offline

#5 02.03.2021 10:54:33

ivankeud
Mitglied

Re: Search trouble with Bakery

Did you apply any changes to the general settings (server settings), i.e. page spacer / pages directory?

Yes. I changed "/pages" to "/"
The error came from there...

Thank you

Offline

Fußzeile des Forums

up