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 time pass by reference?  (Read 5502 times)

0 Members and 1 Guest are viewing this topic.

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Call time pass by reference?
« on: August 03, 2004, 10:53:59 pm »

im getting this error when ever i look at an image in the gallery. how can i make this go away? ive searched around but i couldnt get the right key words i guess...

Code: [Select]
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /www/b/bryansong/htdocs/snap/include/iptc.inc.php on line 23
thanks for looking
Logged

Nibbler

  • Guest
Re: Call time pass by reference?
« Reply #1 on: August 03, 2004, 11:05:10 pm »

What version of coppermine are you running ? - upgrade to 1.3.1
Logged

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Call time pass by reference?
« Reply #2 on: August 03, 2004, 11:11:54 pm »

i have 1.3
stupid question but do i have to reinstall everything again? :\'(
Logged

Nibbler

  • Guest
Re: Call time pass by reference?
« Reply #3 on: August 03, 2004, 11:27:36 pm »

Post your include/iptc.inc.php line 23. If there is a @ anywhere on the line, simply delete it. You won't need to reinstall, keep calm - deep breaths. :)

1.3 => you mean the 1.3 beta or the full 1.3.1 release ?
Logged

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Call time pass by reference?
« Reply #4 on: August 04, 2004, 01:11:39 am »

i think i have the 1.3 beta

Quote
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.0                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002,2003 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //

/*
$Id: iptc.inc.php,v 1.5 2004/04/29 09:46:57 tarique Exp $
*/

function get_IPTC($filename) {
        $size = GetImageSize ($filename, $info);
        if (isset($info["APP13"])) {
        $iptc = iptcparse($info["APP13"]);
        if (is_array($iptc)) {
                $IPTC_data=array(        "Title"                        =>         $iptc["2#005"][0],        # Max 65 octets, non-repeatable, alphanumeric
                                        "Urgency"                =>         $iptc["2#010"][0],        # Max 1 octet, non-repeatable, numeric, 1 - High, 8 - Low
                                        "Category"                =>         $iptc["2#015"][0],        # Max 3 octets, non-repeatable, alpha
                                        "SubCategories"                =>         $iptc["2#020"],                # Max 32 octets, repeatable, alphanumeric
                                        "Keywords"                =>         $iptc["2#025"],                # Max 64 octets, repeatable, alphanumeric
                                        "Instructions"                =>         $iptc["2#040"][0],        # Max 256 octets, non-repeatable, alphanumeric
                                        "CreationDate"                =>         $iptc["2#055"][0],        # Max 8 octets, non-repeatable, numeric, YYYYMMDD
                                        "CreationTime"                =>         $iptc["2#060"][0],        # Max 11 octets, non-repeatable, numeric+-, HHMMSS(+|-)HHMM
                                        "ProgramUsed"                =>         $iptc["2#065"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Author"                =>         $iptc["2#080"][0],        #!Max 32 octets, repeatable, alphanumeric
                                        "Position"                =>         $iptc["2#085"][0],        #!Max 32 octets, repeatable, alphanumeric
                                        "City"                        =>         $iptc["2#090"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "State"                        =>         $iptc["2#095"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Country"                =>         $iptc["2#101"][0],        # Max 64 octets, non-repeatable, alphanumeric
                                        "TransmissionReference"        =>         $iptc["2#103"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Headline"                =>         $iptc["2#105"][0],        # Max 256 octets, non-repeatable, alphanumeric
                                        "Credit"                =>         $iptc["2#110"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Source"                =>         $iptc["2#115"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Copyright"                =>         $iptc["2#116"][0],        # Max 128 octets, non-repeatable, alphanumeric
                                        "Caption"                =>         $iptc["2#120"][0],        # Max 2000 octets, non-repeatable, alphanumeric
                                        "CaptionWriter"                =>         $iptc["2#122"][0]        # Max 32 octets, non-repeatable, alphanumeric
                                );
                } else $IPTC_data=array();
        }
return $IPTC_data;
}
?>
Logged

Nibbler

  • Guest
Re: Call time pass by reference?
« Reply #5 on: August 04, 2004, 01:16:14 am »

You should upgrade to the full 1.3.1 release. That will fix this problem.
Logged

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Call time pass by reference?
« Reply #6 on: August 04, 2004, 01:25:55 am »

whats the easiest way of doing that instead of reinstalling everything? :P
Logged

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Call time pass by reference?
« Reply #7 on: August 04, 2004, 01:41:43 am »

ok i just reinstalled everything but now i get this

Quote
Notice: Undefined index: user_group_list in /www/b/bryansong/htdocs/snap/include/init.inc.php on line 273


thanks for all the help nibbler!

Quote
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.1                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: iptc.inc.php,v 1.2 2004/07/09 06:57:56 gaugau Exp $
// ------------------------------------------------------------------------- //

function get_IPTC($filename) {
        $size = GetImageSize ($filename, $info);
        if (isset($info["APP13"])) {
        $iptc = iptcparse($info["APP13"]);
        if (is_array($iptc)) {
                $IPTC_data=array(        "Title"                        =>         $iptc["2#005"][0],        # Max 65 octets, non-repeatable, alphanumeric
                                        "Urgency"                =>         $iptc["2#010"][0],        # Max 1 octet, non-repeatable, numeric, 1 - High, 8 - Low
                                        "Category"                =>         $iptc["2#015"][0],        # Max 3 octets, non-repeatable, alpha
                                        "SubCategories"                =>         $iptc["2#020"],                # Max 32 octets, repeatable, alphanumeric
                                        "Keywords"                =>         $iptc["2#025"],                # Max 64 octets, repeatable, alphanumeric
                                        "Instructions"                =>         $iptc["2#040"][0],        # Max 256 octets, non-repeatable, alphanumeric
                                        "CreationDate"                =>         $iptc["2#055"][0],        # Max 8 octets, non-repeatable, numeric, YYYYMMDD
                                        "CreationTime"                =>         $iptc["2#060"][0],        # Max 11 octets, non-repeatable, numeric+-, HHMMSS(+|-)HHMM
                                        "ProgramUsed"                =>         $iptc["2#065"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Author"                =>         $iptc["2#080"][0],        #!Max 32 octets, repeatable, alphanumeric
                                        "Position"                =>         $iptc["2#085"][0],        #!Max 32 octets, repeatable, alphanumeric
                                        "City"                        =>         $iptc["2#090"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "State"                        =>         $iptc["2#095"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Country"                =>         $iptc["2#101"][0],        # Max 64 octets, non-repeatable, alphanumeric
                                        "TransmissionReference"        =>         $iptc["2#103"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Headline"                =>         $iptc["2#105"][0],        # Max 256 octets, non-repeatable, alphanumeric
                                        "Credit"                =>         $iptc["2#110"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Source"                =>         $iptc["2#115"][0],        # Max 32 octets, non-repeatable, alphanumeric
                                        "Copyright"                =>         $iptc["2#116"][0],        # Max 128 octets, non-repeatable, alphanumeric
                                        "Caption"                =>         $iptc["2#120"][0],        # Max 2000 octets, non-repeatable, alphanumeric
                                        "CaptionWriter"                =>         $iptc["2#122"][0]        # Max 32 octets, non-repeatable, alphanumeric
                                );
                } else $IPTC_data=array();
        }
return $IPTC_data;
}
?>
Logged

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Call time pass by reference?
« Reply #8 on: August 04, 2004, 01:54:36 am »

ok i just read some other topics and it said to run the update.php and now i cant see my gallery at all\

Quote
Warning: main(themes/classic/theme.php): failed to open stream: No such file or directory in /www/b/bryansong/htdocs/snap/include/init.inc.php on line 333

Fatal error: main(): Failed opening required 'themes/classic/theme.php' (include_path='.:/usr/local/php4/lib/php') in /www/b/bryansong/htdocs/snap/include/init.inc.php on line 333


all i get is this now :\'(
Logged

Nibbler

  • Guest
Re: Call time pass by reference?
« Reply #9 on: August 04, 2004, 02:01:04 am »

You havent uploaded the themes/classic folder.
Logged

speedracersong

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Call time pass by reference?
« Reply #10 on: August 04, 2004, 02:09:42 am »

awesome all fixed now! thanks ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 19 queries.