Re: [Tiki-devel] Running Composer, setup.sh, on Windows

Phil Jollans <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hello Bernard,

thanks for your advice, using the package from Gitlab proved much more 
successful for me.

I have made notes about my experience which may be useful to you.

Unfortunately (point 7 below) the database update appears to trash my 
database.

[1]
Using
https://tiki.org/tar/lastiki_trunk.zip

I got the error messages

     Deprecated: Return type of ADODB_Iterator_empty::current() should 
either be compatible with Iterator::current(): mixed, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3441

     Deprecated: Return type of ADODB_Iterator_empty::next() should 
either be compatible with Iterator::next(): void, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3445

     Deprecated: Return type of ADODB_Iterator_empty::key() should 
either be compatible with Iterator::key(): mixed, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3437

     Deprecated: Return type of ADODB_Iterator_empty::valid() should 
either be compatible with Iterator::valid(): bool, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3433

     Deprecated: Return type of ADODB_Iterator_empty::rewind() should 
either be compatible with Iterator::rewind(): void, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3431

     Deprecated: Return type of ADORecordSet_empty::getIterator() should 
either be compatible with IteratorAggregate::getIterator(): Traversable, 
or the #[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3497

     Deprecated: Return type of ADODB_Iterator::current() should either 
be compatible with Iterator::current(): mixed, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3569

     Deprecated: Return type of ADODB_Iterator::next() should either be 
compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] 
attribute should be used to temporarily suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3573

     Deprecated: Return type of ADODB_Iterator::key() should either be 
compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] 
attribute should be used to temporarily suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3565

     Deprecated: Return type of ADODB_Iterator::valid() should either be 
compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] 
attribute should be used to temporarily suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3561

     Deprecated: Return type of ADODB_Iterator::rewind() should either 
be compatible with Iterator::rewind(): void, or the 
#[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3557

     Deprecated: Return type of ADORecordSet::getIterator() should 
either be compatible with IteratorAggregate::getIterator(): Traversable, 
or the #[\ReturnTypeWillChange] attribute should be used to temporarily 
suppress the notice in 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\adodb\adodb-php\adodb.inc.php 
on line 3657

     Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must 
be of type Countable|array, null given in 
D:\xampp\htdocs\tiki25\lib\headerlib.php:487
     Stack trace:
     #0 
D:\xampp\htdocs\tiki25\temp\templates_c\en_classic^3e6a9a28e461ac9a66971bba621ad05baa8c68d9_0.file.header.tpl.php(456): 
HeaderLib->output_headers()
     #1 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): 
content_63425633c30602_00029104(Object(Smarty_Internal_Template))
     #2 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): 
Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) 

     #3 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): 
Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
     #4 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(385): 
Smarty_Internal_Template->render()
     #5 
D:\xampp\htdocs\tiki25\temp\templates_c\en_classic^b50f45f97f08e96f0e2374b259fd3bad8d0bb66f_0.file.tiki-install_screens.tpl.php(33): 
Smarty_Internal_Template->_subTemplateRender('file:header.tpl', NULL, 
'en--classic', 0, 3600, Array, 0, false)
     #6 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): 
content_63425633b92116_83106975(Object(Smarty_Internal_Template))
     #7 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): 
Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) 

     #8 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): 
Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
     #9 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(232): 
Smarty_Internal_Template->render(false, 1)
     #10 
D:\xampp\htdocs\tiki25\vendor_bundled\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): 
Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), 
NULL, NULL, NULL, 1)
     #11 D:\xampp\htdocs\tiki25\lib\init\smarty.php(460): 
Smarty_Internal_TemplateBase->display('tiki-install_sc...', NULL, NULL)
     #12 D:\xampp\htdocs\tiki25\installer\tiki-installer.php(885): 
Smarty_Tiki->display('tiki-install_sc...')
     #13 D:\xampp\htdocs\tiki25\tiki-install.php(118): 
include_once('D:\\xampp\\htdocs...')
     #14 {main} thrown in D:\xampp\htdocs\tiki25\lib\headerlib.php on 
line 487

I didn't pursue that any further.

[2]
Using
https://gitlab.com/tikiwiki/tiki/-/jobs/artifacts/master/raw/tiki-master.tar.gz?job=tiki-package
I had much better luck.

This version showed the first page without errors.

To continue, I have set up the db\local.php and imported the database 
tables from my running system.

[3]
Out of the box, XAMPP does not have extension "intl" or extension "gp" 
enabled.
Tiki showed me an error message related to the extension gp.
There was no message about the extension intl.

[4]
Tiki does show a mesage
"Function mbstring.func_overload not found"

This cannot be a requirement with PHP 8.0, since the function has been 
removed.

[5]
Tiki shows the text
"This installer will perform some basic checks automatically. Please 
see: a detailed report about your server."
with a link to tiki-check.php

On the face of it that is good, but in practice, tiki-check.php directs 
me straight back to the tiki-install.php, so it is basically useless.

[6]
The database update worked the first time I tried it.

Later I deleted and reimported all the tables and tried the database 
update again.
This resulted in the error message:

     Fatal error: Uncaught Error: Call to a member function fetchRow() 
on bool in 
D:\xampp\htdocs\tiki25a\installer\schema\20090416_plugin_security_tiki.php:15 

     Stack trace:
     #0 D:\xampp\htdocs\tiki25a\installer\Installer.php(206): 
post_20090416_plugin_security_tiki(Object(Tiki\Installer\Installer))
     #1 D:\xampp\htdocs\tiki25a\installer\Installer.php(142): 
Tiki\Installer\Installer->installPatch('20090416_plugin...')
     #2 D:\xampp\htdocs\tiki25a\installer\tiki-installer.php(551): 
Tiki\Installer\Installer->update()
     #3 D:\xampp\htdocs\tiki25a\tiki-install.php(120): 
include_once('D:\\xampp\\htdocs...')
     #4 {main} thrown in 
D:\xampp\htdocs\tiki25a\installer\schema\20090416_plugin_security_tiki.php 
on line 15

I was able repeat the database update by starting from scratch with a 
new directory.

[7]
The database update appears to work, but basically trashes my database.
In particular all of my wiki pages are removed.
The table tiki_history originally had 2235 records, but after the update 
has zero.

If there is a log file, I would be happy to provide it.

Phil



On 08-Oct-22 19:51, Bernard Sfez via TikiWiki-devel wrote:
> Hello Phil,
>
> I’m not a Windows guy, may be ? https://linuxhint.com/run-sh-file-windows/
>
> Also note that you can point what php to use for your setup.sh
> https://dev.tiki.org/Composer#PHP_version_used_on_OSX_may_be_applicable_for_WAMP_on_win_
>
>> Or (maybe better for me), is there a pre-release installation of Tiki 
>> 25 which I could use
>>
> https://dev.tiki.org/Daily-Build#trunk_master_next_25.x_
>
> Good luck,
> Bernard
>
>
>> On 8 Oct 2022, at 17:31, Phil Jollans <[email protected]> wrote:
>>
>> My Web-Hosting service is ending support for PHP 7.4 on 14th 
>> November, meaning that I have to update to PHP 8.1.
>>
>> Since Tiki 25 has not been released yet, I wanted to try using the 
>> current version from the Git repository. And since I am not really a 
>> Linux User, I wanted to try it on Windows using XAMPP.
>>
>> I am currently stuck a screen with the message
>>
>>
>>           Tiki Installer missing third party software files
>>
>>     Your Tiki is not completely installed because Composer has not 
>> been run to fetch package dependencies.
>>
>>     You need to run *sh setup.sh* from the command line.
>>
>>     See https://doc.tiki.org/Composer for details.
>>
>> This seems like something I have to do on Linux.
>>
>> I have tried to do it on a linux shell in Windows (WSL) but I haven't 
>> managed to get that to work, and I don't feel like I am on a path to 
>> success.
>>
>> Is there a way to install the third party files under Windows?
>>
>> Or (maybe better for me), is there a pre-release installation of Tiki 
>> 25 which I could use?
>>
>> Phil
>>
>>
>> _______________________________________________
>> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.