Junior Member
Junior Member
fogpuddle   25-05-2008, 16:13
#1

Hello,

I have an issue where I'm trying to integrate all the functionality of zenphoto into a wordpress theme so my blog stays consistent throughout. I'm following the steps found at http://www.ruzee.com/blog/2006/06/integrating-zenphoto-into-wordpress/ . I followed this step-by-step process about a year ago and got it to work without a problem. Since then, I moved the directory of my blog and upgraded both Wordpress and Zenphoto. Now, I'm getting the following errors:

Warning: Division by zero in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Warning: Division by zero in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Warning: Division by zero in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Warning: main(0php�) [function.main]: failed to open stream: No such file or directory in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Fatal error: main() [function.require]: Failed opening required '0php�' (include_path='.:/usr/lib/php') in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Has anybody ran into this problem? I'd appreciate any feedback to help solve this issue.

Thanks

Member
Member
bpetruzzo   09-07-2008, 18:11
#2

I'm having the same problem.

Administrator
Administrator
acrylian   09-07-2008, 18:16
#3

Maybe try this one: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin

Member
Member
bpetruzzo   09-07-2008, 18:29
#4

I've tried that one as well, to pull up ZenPhoto in wordpress, but that kicks a zenphoto database error at me that seems to be caused by running in the wordpress environment. I posted a topic about it here:

http://www.zenphoto.org/support/topic.php?id=3405&replies=3

I'm actually blown away by how difficult this integration thing is proving to be. On one hand you've got one of the best photo gallerys available and on the other hand you've got arguably the best blog software available and they just really don't want to play nice.

Looking through the ZP plugins for wordpress, none few with integration capability work.

I'm thinking it's got to be recent changes or something. I just don't know how far back it goes. I tried rolling back to the 1.1.4 version of ZP without any luck there, either. Although, truthfully, being a relative novice in the php environment doesn't help either.

Administrator
Administrator
acrylian   09-07-2008, 19:33
#5

The easiest and most hassle free solution is always to make a zenphoto theme that looks like your wordpress theme and include the wordpress header into that. This is the way how we do it on the zenphoto site.

Member
Member
bpetruzzo   09-07-2008, 19:44
#6

Yeah that's what I'm gathering from searching google and various forums. The trouble is the methods most commonly used don't seem to be working.

When using the hack to include wordpress headers and sidebars and such into my Zenphoto theme I get a similar error to what's listed above: "Warning: Division by zero in..." That's following Ruzee's method step by step.

Member
Member
bpetruzzo   09-07-2008, 19:46
#7

Actually, now that I go back and reread the very first post here, my problem is actually identical to fogpuddle's.

Member
Member
BertSimons   10-07-2008, 12:38
#8

Hi, I am just making an new website for somebody based on zenphoto 1.1.7 and wordpress 2.5.1..
I works just fine (based on ruzeeÅ› method also).. see www.waer.nl/zenphoto

this is a stripped version of the index.php, maybe of some use...

`

">

`

Member
Member
bpetruzzo   10-07-2008, 15:21
#9

Oh my gosh... BertSimons... If we weren't divided by a vast ocean of cyberspace, you'd be in danger of a big awkward kiss, that I'd later have to pretend never happened.

It worked great!!

Thank you so much for taking the time to post that! Now, I'm off to tinker with things until I get them to work! :)

Member
Member
cox   03-08-2008, 22:09
#10

BerstSimons your solutioned worked awesome in both firefox and opera on a Mac and Windows but then l I tested it in IE7 and I get 404 errors when I use this method. Have you got any idea why this happens?

www.elketilborghs.com/pictures/

Member
Member
Bilder-Freak   27-08-2008, 10:30
#11

Doesnt work for me either with ie7 - anyone has a fix?

Member
Member
Michael   02-12-2008, 00:30
#12

I tried cobbling together the example used above on how to make a zenphoto theme that looks like my wordpress theme but I wound up with a blank page. I have to warn that I am a novice when it comes to design and coding so is there a reliable tutorial or explanation on how to accomplish this task?

Administrator
Administrator
acrylian   02-12-2008, 10:43
#13

We have a theming tutorial on our site's user guide section. But probably you would have to learn a few general things about HTML and PHP first. That is of course not teached with the tutorial since there are much better sources for the basics.

Member
Member
Michael   04-12-2008, 01:57
#14

Thanks acrylian. I will check that tutorial out first. It's not that I'm clueless but will probably have to refer to a few basics before it's over and done with.

Administrator
Administrator
acrylian   04-12-2008, 11:17
#15

Alright, if something is unclear on the tutorial (I hope not..:-)), just ask again.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.