Upgrade 2.7->2.8

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Upgrade 2.7->2.8

Post by Horst_TPM »

I upgraded from 2.7.9 to 2.8.2 successfully.
Everything seems to be fine, but articles are not shown if there is any (only one) entry in the glossary ('timeout?)
If I exclude the call of 'PMF_String::preg_replace_callback' in the 'insertItemsIntoContent' (...\inc\PFM\Glossary.hpp)
the articles are shown.
php 5.3.8
Did I miss any configuration step?
Thanks and best regards.
minipipes
Posts: 10
Joined: Sun Jun 23, 2013 11:43 am

Re: Upgrade 2.7->2.8

Post by minipipes »

hi, test all glossary entries on evil characters (e.g. & % etc.) and utf-8 in the admin-section, check the database is utf8-encoded.
When in doubt, simply edit all entries :shock:
hope it helps
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade 2.7->2.8

Post by Thorsten »

Hi,

the database characterset was already UTF-8 in 2.7.

Thanks for the hint with one glossary item! This is a good hint. Do you have only one glossary item in that FAQ and then it crashes?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi all,
thanks for the speedy response.
I added a second entry, and I edited the existing entry (removed all special characters) .
Unfortunately the same behaviour.
P.S.
It's a local installation on a XAMPP 1.7.7
Thanks and best regards
Horst
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi,
some more information:
When I trigger the 'Online version check' in the administration/dashboard I don't get negative (any) response.
But when I trigger the 'Online verification check' I get the response:
'phpMyFAQ version mismatch - no verification possible'.
Any idea how to get more detailed information concerning this 'mismatch'?
Thanks and best regards
Horst
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade 2.7->2.8

Post by Thorsten »

Hi,

is your FAQ connected to the internet? If not, it won't work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi Thorsten,
as I'm not a technician, I cannot answer your question definitely.
Generally, the PC my FAQ is running on, has access to the internet.
I hope this is only relevant for the 'online verification check', and not for the glossary problem?

Thanks and best regards
Horst
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade 2.7->2.8

Post by Thorsten »

Hi,

so it's running on a Windows PC? Then you can fix this issue by updating to the latest version of XAMPP.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi,
yes, it's a WINDOWS-7 installation.

I de-installed the old XAMPP 1.7.7.
I Installed the new XAMPP 1.8.3.
I Installed (no update) phpMyFaq 2.8.2.
I specified a new 'FAQ-Site ' with one category, one article and three glossary entries.
Unfortunately the same behaviour:
The article is only shown if I comment the
$content = PMF_String::preg_replace_callback(....)

call in the insertItemsIntoConten function of the ...PFM\Glossary.php
(Whether a glossary item is referenced or not)
Any idea appreciated.

Thanks an d best regards
Horst
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade 2.7->2.8

Post by Thorsten »

Hi,

which language do you use? I have the same configuration on a Windows 7 VM and it works.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi,
I've tried English and German, same behaviour.
Then I did some experiments ( like a blind chicken ;-) ) and
deleted the 'PFM_STRING::'
in the call: '$content = PMF_String::preg_replace_callback(...)' of
'public function insertItemsIntoContent($content = '')' in the module '...\PFM\Glossary.php'

After that it works! :?

Thanks and best regards
Horst
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade 2.7->2.8

Post by Thorsten »

Hi,

I'll check it once again but it's hard to find something when I cannot reproduce it even if I use the same versions. Is it possible to get a copy of your database?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi Thorsten,
of course!
What exactly do you need, and what's the procedure?
If you prefer to contact me directly: Horst.Stoecke@ptvgroup.com

Thanks and best regards
Horst
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade 2.7->2.8

Post by Thorsten »

Hi,

you've got mail.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Horst_TPM
Posts: 20
Joined: Wed Aug 21, 2013 1:50 pm

Re: Upgrade 2.7->2.8

Post by Horst_TPM »

Hi Thorsten,
I received your e-mail on September 1.
(It was classified as spam ???)
And I answered on September 2. with three attachments.
I couldn't observe problems while sending.

Best Regards
Horst
Post Reply