[SOLVED] Problem with link creation in news section

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
myfaqer
Posts: 6
Joined: Tue Feb 07, 2023 11:12 am

[SOLVED] Problem with link creation in news section

Post by myfaqer »

Hello board,

we are running phpMyFAQ 3.1.10 on Debian 11 (MariaDB 10.5, PHP 8.1, Apache 2.4.54)

Everything is working great so far except when creating News.

We create a news by navigating to (logged in user)-> Administration -> Content -> News -> we hit the Create News button

Then we insert minimal content and hit "add news".

When returning to the dashboard the news are created, but the automatically created link zu access the news is wrong.
There is a "https//" inserted which makes no sense there and makes the link unaccessable, i.e.:

https://https//phpmyfaq.johndoe.com/index.php?action=news&newsid=8&newslang=de++

We cannot find an error in our config and the FAQ-section just works great.

Any help is appreciated and thanks in advance!
Last edited by myfaqer on Wed Feb 15, 2023 4:05 pm, edited 1 time in total.
Thorsten
Posts: 15620
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem with link creation in news section

Post by Thorsten »

Hi,

it's a known bug, phpMyFAQ 3.1.11 will be out soon to fix it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
myfaqer
Posts: 6
Joined: Tue Feb 07, 2023 11:12 am

Re: Problem with link creation in news section

Post by myfaqer »

Thanks Thorsten, we stay tuned!
myfaqer
Posts: 6
Joined: Tue Feb 07, 2023 11:12 am

Re: Problem with link creation in news section

Post by myfaqer »

Hey once again,

do you refer to this..?
https://github.com/thorsten/phpMyFAQ/issues/2306

I tried to change the line in index.php to
Strings::htmlspecialchars($faqConfig->getDefaultUrl())
to get a quick workaround, but it does still not work...
Thorsten
Posts: 15620
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem with link creation in news section

Post by Thorsten »

Hi,

there are some more fixes on this issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
myfaqer
Posts: 6
Joined: Tue Feb 07, 2023 11:12 am

Re: Problem with link creation in news section

Post by myfaqer »

Hi Thorsten,

we recently updated to 3.1.11.

The problem with the link generation is gone, thanks a lot!

But another problem still persists - when I click on a freshly created minimal News (just topic, minimal text and "activated") it is just shown as:


test
<!DOCTYPE html> <html> <head> </head> <body> <p>Hallo!</p> <p> </p> <p>Testnews</p> </body> </html>

Über diese Nachricht
Letzte Änderung: 14.02.2023 11:07
Verfasser: Michael
News
Kommentieren nicht möglich

This problem does not accur in a 3.1.0-install but in all new and old news in 3.1.10 and .11


Relating HTML source code in page looks a little bit strange though...

<header>
<h3>test</h3>
</header>
&lt;&excl;DOCTYPE html&gt;
&NewLine;&lt;html&gt;
&NewLine;&lt;head&gt;
&NewLine;&lt;&sol;head&gt;
&NewLine;&lt;body&gt;
&NewLine;&lt;p&gt;Hallo&excl;&lt;&sol;p&gt;
&NewLine;&lt;p&gt;&nbsp;&lt;&sol;p&gt;
&NewLine;&lt;p&gt;Testnews&lt;&sol;p&gt;
&NewLine;&lt;&sol;body&gt;
&NewLine;&lt;&sol;html&gt;
</article>


Thanks in advance,
Michael
Thorsten
Posts: 15620
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem with link creation in news section

Post by Thorsten »

Hi,

yes, 3.1.12 is already in the works, sorry for that. Here's the fix: https://github.com/thorsten/phpMyFAQ/co ... 30af3436ee

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
myfaqer
Posts: 6
Joined: Tue Feb 07, 2023 11:12 am

Re: Problem with link creation in news section

Post by myfaqer »

Hi,

thanks for your quick reply!
Edited the file and works instantly.

Now we are ready to roll, thank you very much!
Post Reply