Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Installation errors- First timer
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=4030
Page 1 of 1

Author:  Fco [ 7. Feb 2016, 01:46 ]
Post subject:  Installation errors- First timer

Hi, am trying to install TWG in windows 7 system;
Mozilla Firefox Browser
Apache Server 2.4
PHP version >= 4.3.0 Yes (7.0.2)
- XML support Available
- GD lib support Available
- GD lib >= 2.0 Yes (2.1.0)
- imagecreatetruecolor Available
- Memory limit Very Good (256M)
- Max resolution ~ 7281 x 5467
Directory and file permission show as writable except to the the image part;
An image has to be shown below. If not, images cannot be
loaded properly! Please check the debug file for more details! Error loading image.
I got some errors;
Fatal error: Uncaught Error: Call to undefined function ereg_replace() in C:\Apache24\htdocs\twg23\inc\parserequest.inc.php:62 Stack trace: #0 C:\Apache24\htdocs\twg23\index.php(78): include() #1 {main} thrown in C:\Apache24\htdocs\twg23\inc\parserequest.inc.php on line 62

related to ereg_replace also saw an error related to ereg()
Looks like PHP 7.x.x does not support them so I changed them to preg_replace() and preg_match.

This help fix a problem with listing files in admin/index.php?action=list(it would show the folders and an error towards the bottom of page). Now it show folders and files.

But I still can not see the image in twg/info.php and admin/info gives these erros;
02.06.2016 23:41:44 (en) - ERROR 2 in tdocs\twg23\admin\_include\fun_extra.php, line 224: preg_match(): Delimiter must not be alphanumeric or backslash
Request: /twg23/admin/index.php?action=list&sview=yes
Stack: filefunctions.inc.php:1468:output:ERROR 2 in tdocs\twg23\admin\_include\fun_extra.php, line 224: preg_match(): Delimiter must not be a:C:\Apache24\htdocs\twg23/counter/_mydebug.out
Stack: filefunctions.inc.php:1534:debug:ERROR 2 in tdocs\twg23\admin\_include\fun_extra.php, line 224: preg_match(): Delimiter must not be a
Stack: ::on_error:2:preg_match(): Delimiter must not be alphanumeric or backslash:C:\Apache24\htdocs\twg23\admin\_include\fun_extra.php:224:Array( [dir] => [item] => twg_audiolist.php [pat] => \.pas$|\.p$|\.java$|\.py$|\.sh$\.tcl$
Stack: fun_extra.php:224:preg_match:\.pas$|\.p$|\.java$|\.py$|\.sh$\.tcl$|\.tk$:twg_audiolist.php
Stack: fun_list.php:353:get_is_editable::twg_audiolist.php
Stack: fun_list.php:699:print_table::Array( [addons] => addons [admin] => admin [buttons] => buttons [cache] => cache [cou:1
Stack: index.php:251:list_dir:

Does not like "preg_match". Can TWG Ver. 2.3.4 work with PHP 7.0.2 and Apache 2.4?

Thank you for helping a beginner.

Author:  TinyWebGallery [ 7. Feb 2016, 02:08 ]
Post subject:  Re: Installation errors- First timer

No - not yet.

php 7 will be supported in the next version.

Author:  Fco [ 7. Feb 2016, 03:08 ]
Post subject:  Re: Installation errors- First timer

Thank you Much.

Any idea when the next version of TWG will come out?

Author:  TinyWebGallery [ 7. Feb 2016, 21:59 ]
Post subject:  Re: Installation errors- First timer

Not yet.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/