Re: [Tiki-devel] New errors on index rebuild after Tiki22 update (yesterday with 9b90b2a3)
Jonny Bradley via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Bernard
This caught me out on several servers when php8 arrived a couple of weeks ago, and changed the default cli php to that (nothing to do with which php versions apache is using).
Several dog-fooding scripts failed and many hounds went hungry! 😋
Here's a page including the commands to set the defaults on Debian (and i think Ubuntu, maybe others)
https://tecadmin.net/switch-between-multiple-php-version-on-debian/
The main one is:
sudo update-alternatives --set php /usr/bin/php7.4
(7.2 is safer is you're not on 22.x or trunk)
HTH
jb
> On 17 Mar 2021, at 05:52, Bsfez Tiki <[email protected]> wrote:
>
> Good catch Jonny !
>
> dev@elyseavenue-paris15:~/public_html$ php -v
> PHP 8.0.3 (cli) (built: Mar 5 2021 08:38:30) ( NTS )
> Copyright (c) The PHP Group
> Zend Engine v4.0.3, Copyright (c) Zend Technologies
> with Zend OPcache v8.0.3, Copyright (c), by Zend Technologies
>
> It’s on a debian10/virtualmin server (virtualmin update installed php8)
>
> This domain (virtual server) is set to use php 7.4.16 and I didn’t double-check what was using "php console.php" because it used to be synchronised with the php version of the domain.
>
> I also check with tiki-check.php and I can see (now/again ?) that the CLI PHP version and the PHP version are not synchronized:
>
> PHP version 7.4.16
> PHP CLI version 8.0.3
>
> I know we have similar config… how do you "tell" php to use 7.4.x for CLI ?
>
> Bernard
>
>
>> On 16 Mar 2021, at 18:17 , Jonny Bradley via TikiWiki-devel <[email protected]> wrote:
>>
>> What version of php are you using on the command line? (do `php -v`)
>>
>> Mine just rebuilt fine using php 7.4.14, but i get those errors using php 8.0.
>>
>> jb
>>
>>
>>> On 16 Mar 2021, at 13:13, Bsfez Tiki <[email protected]> wrote:
>>>
>>> Hi Jonny,
>>>
>>> Thanks for your reply and time.
>>>
>>> At first it prevented the standard php console.php i:r from working and the index wasn’t rebuilt properly (see the screenshot below).
>>>
>>> Then after a few attempts I started to use php console.php i:r --log -vvv
>>> At some point I ended with less and less errors (only the last 2 described)
>>>
>>> I fear some people or scheduled index:rebuilt failed here and there.
>>>
>>>
>>>> but shouldn't be an issue for 22.x
>>>
>>> As I long as the index is rebuilt and you know where this come from it is good for me. ;-)
>>>
>>> B
>>>
>>>
>>> <Screen Shot 2021-03-16 at 14.59.28 .png>
>>>
>>>
>>>
>>>
>>>
>>>> On 16 Mar 2021, at 13:16 , Jonny Bradley via TikiWiki-devel <[email protected]> wrote:
>>>>
>>>> Hi B
>>>>
>>>> This shouldn't stop the rebuild from finishing but they are warnings that this code will fail fatally on php8, so we do need to fix them for Tiki 23.x but shouldn't be an issue for 22.x
>>>>
>>>> If you want to hide them change your error_reporting to (the default) E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED maybe?
>>>>
>>>> jb
>>>>
>>>>
>>>>
>>>>> On 16 Mar 2021, at 10:09, Bsfez Tiki via TikiWiki-devel <[email protected]> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> On a freshly updated Tiki 22 (yesterday with 9b90b2a3 ?) I have errors on rebuilding the index.
>>>>>
>>>>> Both doesn’t seems to be related to the item or file and is ouputted on the first trackeritem and first file.
>>>>>
>>>>> It was appearing for trackeritem2 and I deleted it and now it is displayed for trackeritem6 (next inline)
>>>>> I recheck and resave the file gallery 5 and it is still here.
>>>>>
>>>>> I have no idea on where to look to produce a better diagnose.
>>>>>
>>>>> May that ring a bell to someone that worked on this lately ?
>>>>>
>>>>> Bernard
>>>>>
>>>>> 2021-03-16T09:59:31+00:00 INFO (6): addDocument trackeritem 6 {"memoryUsage":"20.0 MiB"}
>>>>> 2021-03-16T09:59:31+00:00 ERR (3): DEPRECATED: Required parameter $prettyModifier follows optional parameter $type {"code":null,"file":"/home/dev/public_html/lib/trackers/trackerlib.php","line":4607}
>>>>>
>>>>>
>>>>> 2021-03-16T09:59:31+00:00 INFO (6): addDocument file 5 {"memoryUsage":"22.4 MiB"}
>>>>> 2021-03-16T09:59:31+00:00 ERR (3): DEPRECATED: Required parameter $feedbacks follows optional parameter $to {"code":null,"file":"/home/dev/public_html/lib/filegals/filegallib.php","line":1887}
>>>>> 2021-03-16T09:59:31+00:00 ERR (3): DEPRECATED: Required parameter $file_id follows optional parameter $to {"code":null,"file":"/home/dev/public_html/lib/filegals/filegallib.php","line":1910}
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> TikiWiki-devel mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> TikiWiki-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>
>>
>>
>>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel