Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 04-05-2007, 12:57 AM
thomasps Offline
forum loafer
 
Join Date: Apr 2007
Posts: 17
DIVISION BY ZERO?

hi, thanks to all who dev'd pixelpost, it looks like a great piece!

ive searched all i can, and cant find what im looking for to answer my question, so am braving the veterans to ask;

Warning: Division by zero in /home/sites/xxxxxx.com/public_html/film/includes/pixelpost.php on line 6

any idea how to fix this? why is there a division here anyway? is it referring to the heiphen in the databass name ''webxx-thomasps'' ?

Last edited by thomasps; 04-05-2007 at 03:01 AM.
Reply With Quote
  #2  
Old 04-05-2007, 03:08 AM
thomasps Offline
forum loafer
 
Join Date: Apr 2007
Posts: 17
really no one knows the prob?

i am guessing it is because my web host names my databass with a "-" in it.. is that correct?

please someone help me out. thanks
Reply With Quote
  #3  
Old 04-05-2007, 07:38 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
line 6 points to the version number of Pixelpost which is encoded in base64 in pixelpost.php
please have a look into pixelpost.php line 50 and tell what value you have in $version.

KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #4  
Old 04-05-2007, 10:51 AM
thomasps Offline
forum loafer
 
Join Date: Apr 2007
Posts: 17
ah jesus. i just realised its not pointing to the database name, but to

$pixelpost_db_host = "localhost"; // database host, often "localhost"

version;

$version = "MS41IEZpbmFsIC0gSnVseSAyMDA2";
Reply With Quote
  #5  
Old 04-05-2007, 11:07 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
localhost for database host is right for the most database installation.
Don't confuse that with database name!

My version string (for 1.6beta!) is
$version = "MS42IEJldGEgKGxpZmUgb24gdGhlIGVkZ2UhKSAtIE1hcmNoI DIwMDc=";
In Database it says for version 1.59 which is correct for 1.6beta
KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #6  
Old 04-05-2007, 11:21 AM
thomasps Offline
forum loafer
 
Join Date: Apr 2007
Posts: 17
i really cant see that being the problem..

its in line 6 ;

$pixelpost_db_host = 'localhost'; // database host, often "localhost"

but i cant see anything wrong there either.

fuck knows why it wont set up. this is getting ridiculous now :'( spent a long time on it, just cant figure it out :'(

im getting this error in the pixelpost admin panel... i get a different one if i try to go straight to the desired web page.. lemme just grab that..
Reply With Quote
  #7  
Old 04-05-2007, 11:24 AM
thomasps Offline
forum loafer
 
Join Date: Apr 2007
Posts: 17
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sites/xxxxxxxx.com/public_html/film/index.php on line 740

is the error i get when im looking straight at the desired page i am pointing at. (xxxxxx obviously isnt actual address, just keepin it anonymous till i fix the problems!)
Reply With Quote
  #8  
Old 04-05-2007, 01:04 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Quote:
Originally Posted by thomasps View Post
MS41IEZpbmFsIC0gSnVseSAyMDA2
That's the correct string for Version 1.5.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #9  
Old 04-05-2007, 01:11 PM
thomasps Offline
forum loafer
 
Join Date: Apr 2007
Posts: 17
no one can help with the problem? :'( its busting my balls
Reply With Quote
  #10  
Old 04-05-2007, 01:27 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Do you have any special characters in your DB password?
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:36 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs