Author Topic: error message  (Read 8050 times)

0 Members and 1 Guest are viewing this topic.

KGF

  • ezCustomer
  • *****
  • Posts: 100
error message
« on: August 20, 2014, 03:54:49 am »
Hallo,
while writing a commentary is this error message:

Fatal error: Call to undefined function updateMemberData() in /customers/a/4/5/photoplaca.com/httpd.www/sources/Gallery.php on line 3037

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 259
    • ezCommunitySuite
Re: error message
« Reply #1 on: August 20, 2014, 09:24:58 am »
Upload this file to your sources folder and let me know if it helps

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: error message
« Reply #2 on: August 20, 2014, 09:53:05 am »
Yes, it works for MEMBERS
and
No, it works not for GUESTS

Warning: require_once(/customers/a/4/5/photoplaca.com/httpd.www/sources/Subs-Post.php): failed to open stream: No such file or directory in /customers/a/4/5/photoplaca.com/httpd.www/sources/Gallery.php on line 13115 Fatal error: require_once(): Failed opening required '/customers/a/4/5/photoplaca.com/httpd.www/sources/Subs-Post.php' (include_path='.:/usr/share/php') in /customers/a/4/5/photoplaca.com/httpd.www/sources/Gallery.php on line 13115

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 259
    • ezCommunitySuite
Re: error message
« Reply #3 on: August 21, 2014, 08:54:05 am »
Open Sources/Gallery.php

Around line 13115
Find and remove
Code: [Select]
    // We certainly want this.
require_once($sourcedir . '/Subs-Post.php');

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: error message
« Reply #4 on: August 21, 2014, 04:04:29 pm »
it works not for GUESTS

SELECT id_group FROM `photoplaca_com`.Ezgallery_gallery_permissions WHERE permission = 'gallery_manage' AND allow = 1 AND id_group != 0 Unknown column 'permission' in 'where clause' /customers/a/4/5/photoplaca.com/httpd.www/sources/Gallery.php 13123

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 259
    • ezCommunitySuite
Re: error message
« Reply #5 on: August 21, 2014, 04:15:18 pm »
Open sources/gallery.php
Find
Code: [Select]
function Gallery_emailAdmins($subject, $body, $additional_recipients = array())
{
global $sourcedir, $db_gallery_prefix;

// Load all groups which are effectively admins.
$request = db_query("
SELECT id_group
FROM {$db_gallery_prefix}gallery_permissions
WHERE permission = 'gallery_manage'
AND allow = 1
AND id_group != 0", __FILE__, __LINE__);

$groups = array(1);
while ($row = mysql_fetch_assoc($request))
$groups[] = $row['id_group'];


$request = db_query("
SELECT id_member, username, realName, lngfile, email
FROM {$db_gallery_prefix}gallery_members
WHERE (id_group IN (" . implode(",",$groups) . "))
AND notifytypes != 4
ORDER BY lngfile", __FILE__, __LINE__);

$emails_sent = array();
while ($row = mysql_fetch_assoc($request))
{
// Stick their particulars in the replacement data.

// Then send the actual email.
sendmail($row['email'], $subject, $body, null, null, false, 1);

// Track who we emailed so we don't do it twice.
$emails_sent[] = $row['email'];
}


// Any additional users we must email this to?
if (!empty($additional_recipients))
foreach ($additional_recipients as $recipient)
{
if (in_array($recipient['email'], $emails_sent))
continue;

// Send off the email.
sendmail($recipient['email'], $subject, $body, null, null, false, 1);
}
}
Replace with
Code: [Select]
function Gallery_emailAdmins($subject, $body, $additional_recipients = array())
{
global $sourcedir, $db_gallery_prefix;

// Load all groups which are effectively admins.
$request = db_query("
SELECT id_group
FROM {$db_gallery_prefix}gallery_permissions
WHERE title = 'gallery_manage'
AND allow = 1
AND id_group != 0", __FILE__, __LINE__);

$groups = array(1);
while ($row = mysql_fetch_assoc($request))
$groups[] = $row['id_group'];


$request = db_query("
SELECT id_member, username, realName, email
FROM {$db_gallery_prefix}gallery_members
WHERE (id_group IN (" . implode(",",$groups) . "))
", __FILE__, __LINE__);

$emails_sent = array();
while ($row = mysql_fetch_assoc($request))
{
// Stick their particulars in the replacement data.

// Then send the actual email.
sendmail($row['email'], $subject, $body, null, null, false, 1);

// Track who we emailed so we don't do it twice.
$emails_sent[] = $row['email'];
}


// Any additional users we must email this to?
if (!empty($additional_recipients))
foreach ($additional_recipients as $recipient)
{
if (in_array($recipient['email'], $emails_sent))
continue;

// Send off the email.
sendmail($recipient['email'], $subject, $body, null, null, false, 1);
}
}

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: error message
« Reply #6 on: August 22, 2014, 01:30:45 am »
ok, error message eliminated- thank you

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
10126 Views
Last post June 22, 2011, 06:35:52 am
by GKDantas
3 Replies
6680 Views
Last post March 20, 2013, 04:42:41 am
by poultryswap
2 Replies
17461 Views
Last post February 13, 2014, 10:50:10 am
by GrahamNR17
1 Replies
7361 Views
Last post February 18, 2014, 11:58:50 pm
by ezCommunitySuite
2 Replies
52093 Views
Last post November 30, 2022, 11:26:47 pm
by Sweetwater

© 2025 ezCommunitySuite