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: Problem: with PoTW plugin  (Read 3574 times)

0 Members and 1 Guest are viewing this topic.

pacimir

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Problem: with PoTW plugin
« on: January 27, 2008, 10:53:00 am »

I had to move my site to another hosting server and now I get an error in the Picture of the week plugin. It was working perfect before that. I guess the php version is newer in the new server and it's making that error. Any ideas how to solve the problem ?

Quote
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 45

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 49

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 60

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 66

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 69

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 72

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 75

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 78

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 81

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 84

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 87

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 97

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 100

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 103

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 106

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 109

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 112

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/galeria/include/langfallback.inc.php on line 390

http://galeria.lukovit.com/plugins/potd/weekthumb.php

this is the source of weekthumb.php

Quote
<body bgcolor=#4b4b4b><?php
define('WEEKTHUMB_PHP', true);
define('IN_COPPERMINE', true);

require('include/init.inc.php');
global $prefix, $dbi;

$content = '';
{   
  $query = <<< EOT
    SELECT p.pid, aid, filepath, filename, owner_name, owner_id 
      FROM {$CONFIG['TABLE_PLUGIN_POTD']} AS pp LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS p
      ON p.pid=pp.pid
    WHERE pp.potw='1'
EOT;
  $result = cpg_db_query($query, $dbi);
  $picture = mysql_fetch_array($result);
   $img = "<img src=\"{$CONFIG['path_to']}albums/{$picture['filepath']}thumb_{$picture['filename']}\"  border=\"0\">";
  $content .= <<< EOT
   <table bgcolor="#4b4b4b" align="center"><center><a href="{$CONFIG['path_to']}index.php?file=potd/week" target="_blank">$img</a></center></table>
EOT;
  $stop++;
}

print $content;
?>
« Last Edit: January 27, 2008, 02:49:34 pm by Nibbler »
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Problem: with PoTW plugin
« Reply #1 on: January 27, 2008, 11:05:41 am »

You are calling up the file incorrectly. This URL works http://galeria.lukovit.com/index.php?file=potd/weekthumb

Notice the chage of the url, file = directory called "potd" and a file called "weekthumb" followed by an extension (it's being called by it's asset name).
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

pacimir

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Problem: with PoTW plugin
« Reply #2 on: January 27, 2008, 11:29:55 am »

Thanks!
Works perfect with this link :)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.