Support Forums

Problem with private message

This is a discussion on Problem with private message within the Technical Support forums, part of the Technical Support Forums category; Hi, I've just tried to post a private message and i got the following error: Fatal error: Call to undefined ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-12-2009, 04:46 AM   #1
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 8
kayfi is on a distinguished road
Default Problem with private message

Hi,

I've just tried to post a private message and i got the following error:
Fatal error: Call to undefined function date_now() in /mnt/w0003/d01/s05/b015ae65/www/kayfi/includes/classes/kernel/Private.php on line 190

You can try to contact me to test it there:
http://www.kayfi.com/viewmember.php?member=3

How can it be fixed ?
Than for your support,
Regards,

Yves.
__________________
v 4.1.3 Developer
Default templates

Last edited by kayfi; 06-12-2009 at 04:51 AM.
kayfi is offline  
Old 06-12-2009, 05:19 AM   #2
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 8
kayfi is on a distinguished road
Default

I solved the problem by deleting the following line in the includes/classes/kernel/Private.php:
$now=date_now();

But i'be noticed that of course i encounter the folling trouble with date in the received PM:
Sended at: 0000-00-00 00:00:00
__________________
v 4.1.3 Developer
Default templates
kayfi is offline  
Old 06-12-2009, 05:53 AM   #3
Member
 
Join Date: Mar 2009
Posts: 82
Rep Power: 14
wabugi is a glorious beacon of light wabugi is a glorious beacon of light wabugi is a glorious beacon of light
Default

Which version of Mysql are you using?

I didn't have your error but I had the problem that my PM date was always shown like this: 0000-00-00 00:00:00

This problem was solved by moving my database from mysql4.x to mysql 5.x

I know that you seem to have this problem because of deleting the line in private.php
But maybe the sql version is also an issue there.
__________________
v4.15 - Developer Edition - custom template
wabugi is offline  
Old 06-12-2009, 06:12 AM   #4
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 8
kayfi is on a distinguished road
Default

The MySQL version used in my hosting server is MySQL 5.0.24a

Can someone provide me some help ? Please... and regards !
__________________
v 4.1.3 Developer
Default templates

Last edited by kayfi; 06-12-2009 at 08:05 AM.
kayfi is offline  
Old 06-12-2009, 08:39 AM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,299
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

date_now is defined in functions.php, can you open /includes/functions.php and post the top 10 lines or so of the file, should look like this....

/**
* @copyright 68 Classifieds
*
* @author $Author: suzkaw $
* @version $Revision: 326 $
* @package 68Classifieds
* @link 68 Classifieds - PHP Classifieds Script
*
* @Updated: $Date: 2009-05-04 14:40:44 -0400 (Mon, 04 May 2009) $
*/
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-12-2009, 09:00 AM   #6
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,017
Rep Power: 60
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I can't say for sure, however I believe this was a bug that was fixed in v4.1.3

================================
v4.1.3 From v4.1.2
================================
- language/spanish.php
- userindex.php
- usermodifylisting.php
- includes/core/checkout/step2.php
- includes/core/checkout/step3submit.php
- includes/classes/kernel/Validate.php
- includes/classes/kernel/Listings.php
- includes/classes/kernel/Orders.php
- includes/classes/kernel/Products.php
- includes/classes/kernel/Login.php
- includes/classes/kernel/Mailer.php
- includes/classes/kernel/Private.php
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 06-12-2009, 09:02 AM   #7
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 8
kayfi is on a distinguished road
Default

Hi Larry and Mike,

Thanks for your answer.
Here are below the top 10 lines of the requested file:

Code:
/**
* @copyright 68 Classifieds
*
* @author $Author: suzkaw $
* @version $Revision: 4 $
* @package 68Classifieds
* @link http://www.68classifieds.com
*
* @Updated: $Date: 2008-10-30 13:24:53 -0400 (Thu, 30 Oct 2008) $
*/
So that mean i have to upgrade the functions.php file from the 4.1.3 version of 68C...
It's done and the bug is fixed...
Thank you so much guys...
Let me tell you once more that it's really a great pleasure to work with you !!!!
God bless (I mean take care of you cause we're really need you) and thanks again !
__________________
v 4.1.3 Developer
Default templates

Last edited by kayfi; 06-12-2009 at 09:08 AM.
kayfi is offline  
Old 06-12-2009, 09:10 AM   #8
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,017
Rep Power: 60
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

There are several bugs that were addressed between v4.1.2 and 4.1.3. Both the Functions.php and Private.php were updated in 4.1.3 as well as many others.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 06-12-2009, 09:11 AM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,299
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Something is fishy. Looking at a version 412, Private.php does not even have date_now() in it and neither does functions.php.

Date_now() wasnt added until 413.

kayfi, can you post the top 10 lines or so from your file Private.php?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-12-2009, 09:22 AM   #10
curmudgeon
 
Join Date: Mar 2006
Posts: 5,299
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by kayfi
So that mean i have to upgrade the functions.php file from the 4.1.3 version of 68C...
It's done and the bug is fixed...
I would be very carefull about just uploading certain files from 413 onto a 412 site without actually doing the upgrade. You may run into things that get fixed but other problems could arise due to changes in code.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Deleting Ads [Confirmation Message Problem] Roswell67 Technical Support 12 01-07-2009 11:29 AM
Private Messaging Scooter Technical Support 11 02-05-2007 11:06 AM
Thank you message page- custom message? zman78 Templates, HTML, CSS, and Design Help 6 04-05-2006 08:58 PM


All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0