forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: bibsen on October 04, 2004, 09:25:04 am

Title: Call to undefined function: preg_split
Post by: bibsen on October 04, 2004, 09:25:04 am
Hi.
Can any one help me with the following problem:


Fatal error: Call to undefined function: preg_split() in /usr/local/www/coppermine/install.php on line 21


Running on:

FreeBSD 5.2.1-RELEASE #0
coppermine-1.3.2    Coppermine is a web picture gallery script
php4-4.3.8_2        PHP Scripting Language (Apache Module and CLI)
php4-gd-4.3.8_2     The gd shared extension for php
php4-mysql-4.3.8_2  The mysql shared extension for php
mysql-client-4.0.21 Multithreaded SQL database (client)
mysql-server-4.0.21 Multithreaded SQL database (server)

(has been installed from ports)


bg
Brian Ibsen
Title: Re: Call to undefined function: preg_split
Post by: Joachim Müller on October 04, 2004, 09:55:49 am
(has been installed from ports)

What do you mean by that? Where did you get the package from? Post a link to your site.

Joachim

P.S. Is there any particular reson for posting this on the cpg1.2 support board, while you claim you have cpg1.3.2?
Title: Re: Call to undefined function: preg_split
Post by: bibsen on October 04, 2004, 11:03:50 am
Ports is kind of a makefile collection which are in lots of most distributions of linux/unix/bsd....

the makefile does not exactly descibe the exact package..  this is the info in the makefile.
PORTNAME=       coppermine
PORTVERSION=    1.3.2
CATEGORIES=     www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     ${PORTNAME}
DISTNAME=       cpg${PORTVERSION}

so package should be named cpg1.3.2






And the reason for using the wrong place to post is, or course, just a mistake..
Title: Re: Call to undefined function: preg_split
Post by: bibsen on October 04, 2004, 05:29:57 pm
I just tried to get some new files from http://heanet.dl.sourceforge.net/sourceforge/coppermine/cpg1.3.2.zip

but problem remains.


(i have also tried to chmod 777 coppermine/*    and chown/chgrp to www which my apache runs as)

/Brian Ibsen
Title: Re: Call to undefined function: preg_split
Post by: Nibbler on October 04, 2004, 05:45:15 pm
That is supposed to be a standard PHP function, I'd be looking at your PHP installation to fix this issue.
Title: Re: Call to undefined function: preg_split
Post by: bibsen on October 05, 2004, 12:40:24 pm
well..    just had an extra look at the cpg requirements

"the script should work with any version >= 4.1.0"

And as I'm using php4-4.3.8_2 I might need to upgrade.


I looks like some extra parameter flags has been implemented to preg_split i PHP > php3-beta3 so this could be the problem.
Title: Re: Call to undefined function: preg_split
Post by: bibsen on October 05, 2004, 01:19:09 pm
ups.. my mistake..

But eventhough i tried to upgrade.

So now I'm using php5, php5-gd, php-mysql

Still exactly the same problem....
Title: Re: Call to undefined function: preg_split
Post by: bibsen on October 16, 2004, 04:41:02 pm
problem is fixed...

problem was a wrong path to some includes in php.ini
Title: Re: Call to undefined function: preg_split
Post by: gamepad on January 19, 2005, 04:36:14 am
Im having the same problem, can you tell me what paths you needed to change?