Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 12:26 am EST

Geeklog Forums

Fatal error: Call to undefined function: com_numberformat()


zaurav

Anonymous
angry
Hey,
I previously had gl 1.3.11 and tried upgrading to 1.4.0. Everything went fine until I got this message
Text Formatted Code

Fatal error: Call to undefined function: com_numberformat() in /home/zaurav/public_html/plugins/polls/functions.inc on line 705
 
after upgrading my databases. Please help me. On line 705 of my functions.inc I have
Text Formatted Code
$poll->set_var( 'num_votes', COM_numberFormat( $Q['voters'] ));
 

Is there something that I have done wrong?
Thanks in advance
 Quote

Status: offline

zaurav

Forum User
Chatty
Registered: 01/07/06
Posts: 57
update:
I commented out lines which contained com_numberformat and now i get this sql error (taken from my error.log):
Text Formatted Code
You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '::all' at line 1. SQL in question: SELECT sid FROM gl_stories WHERE draft_flag = 0 AND date <= NOW() AND tid = 'geeklog' AND perm_anon > 0 ORDER BY date DESC  LIMIT ::all
 

I shouldnt have upgraded my GL to 1.4.0. I am pretty new to this and my site was running fine and bug free before this. i am regretting it already.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You didn't upload all the new files. Specifically, you seem to be using an old version of lib-common.php (since that's where that function is located).

bye, Dirk
 Quote

Status: offline

zaurav

Forum User
Chatty
Registered: 01/07/06
Posts: 57
brainy
THat was it!!!
but then again this pops upSadSad
Text Formatted Code
You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1. SQL in question: DELETE FROM gl_speedlimit WHERE (type = 'login') AND (date < unix_timestamp() - )

 

line 1 of which file??

on top of that here's the next error already
Text Formatted Code
 Parse error: parse error, unexpected T_STRING in /home/zaurav/public_html/config.php on line 72

 
and the line its pointing to is :
Text Formatted Code
// directory (i.e. without the $_CONF['path']) like this:
 

too many errors and cant make head nor tail of them. This above is a commented out line, how can it produce errors?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The actual cause of that parse error may be somewhere before line 72. Check for the usual things like missing semicolons or missing quotes.

The SQL error may be the result of that error in config.php, as it would need a few things defined further down in config.php.

bye, Dirk
 Quote

Status: offline

zaurav

Forum User
Chatty
Registered: 01/07/06
Posts: 57
Hey I fixed that error. I went into PhpMyAdmin and inserted new row in gl_speedlimit with type = 'login' and date='unix_timestamp()' and miraculously everything is working flawless!!. I'm Big Celebration Very Happy
GL1.4 is pretty cool. i like the 'directory' feature. Thanks a lot dirk for your help. As always I appreciate it.
--------------------------------------------------------------------------------
Edit:
I know i shouldnt have said flawless!! arrgh. Its my journals. I can view them and everything but when I click on 'comments' or 'post a comment' it takes me back to the home pageSadSad' And to think the journals are the focus of my website..SadSad
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by zaurav: Its my journals. I can view them and everything but when I click on 'comments' or 'post a comment' it takes me back to the home pageSadSad

So you're using the Journal plugin? The comment API has changed in 1.4.0 and the plugin will have to be updated ...

bye, Dirk
 Quote

Status: offline

zaurav

Forum User
Chatty
Registered: 01/07/06
Posts: 57
caffeinated
This is where I really need you're help. How do I update my plugin for the comment API? is there a file I could download or will I have to write my own program or something (which I would probably suck at doing cuz i know next to nothing bout coding).
SO is there a guide or something for me to do this? I just want the journal comments to be working again.
Bye.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Well, Vinny's article (see the link above) has all the necessary information. If you don't understand that (and I don't blame you if you don't) then you probably need help.

bye, Dirk
 Quote

Status: offline

zaurav

Forum User
Chatty
Registered: 01/07/06
Posts: 57
magical
Yup! dont understand much of vinny's article. I do need help. Its pretty funny that GL1.4 has been released and no one has yet written the comment api code for journal. Am I the only one using journal w/ gl 1.4? Anyways I guess I'll just have to wait until someone does that. Till then Imma experiment with the codes and HOPE to get them to workVery Happy.
Peace,
Z
 Quote

All times are EST. The time is now 12:26 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content