Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Call to undefined function: preg_split  (Read 10979 times)

0 Members and 1 Guest are viewing this topic.

bibsen

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Call to undefined function: preg_split
« 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
« Last Edit: October 16, 2004, 05:17:10 pm by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Call to undefined function: preg_split
« Reply #1 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?
Logged

bibsen

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Call to undefined function: preg_split
« Reply #2 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..
Logged

bibsen

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Call to undefined function: preg_split
« Reply #3 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
Logged

Nibbler

  • Guest
Re: Call to undefined function: preg_split
« Reply #4 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.
Logged

bibsen

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Call to undefined function: preg_split
« Reply #5 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.
Logged

bibsen

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Call to undefined function: preg_split
« Reply #6 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....
Logged

bibsen

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Call to undefined function: preg_split
« Reply #7 on: October 16, 2004, 04:41:02 pm »

problem is fixed...

problem was a wrong path to some includes in php.ini
Logged

gamepad

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Call to undefined function: preg_split
« Reply #8 on: January 19, 2005, 04:36:14 am »

Im having the same problem, can you tell me what paths you needed to change?
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.