Closed (fixed)
Project:
Cafepress Shop-front Integration
Version:
5.x-0.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2007 at 03:56 UTC
Updated:
6 May 2008 at 22:01 UTC
Great idea for a module and was so excited to download and implement. Having problems and have placed the code below. Any help would be greatly appreciated.
Fatal error: Call to a member function read() on a non-object in /home/XXXXXXX/public_html/ADR/modules/cafepress-5.x-0.0/cafepress/cafepress.module on line 268
Comments
Comment #1
rooey commentedPlease provide more information.
What platform are you running on etc?
Comment #2
alphadawg commentedi'm running drupal 5.0 and the cafe press version 5.0 as well
Comment #3
vm commentedthe developer meant what version of PHP, Apache and the like.
side note: if you are serously running Drupal 5.0 you should consider updating to Drupal 5.3 you are three security releases behind and are open to some pretty bad security holes.
Comment #4
Street-1 commentedI am getting the same error when I enable the cafepress block. I am running on Apache 2.0.54 with php 5.2.3 on Dreamhost.
Comment #5
oldblackcrow commentedI'm having the same problem... I had to delete the cafepress module via ftp to get back into my site. How do I know what versions I'm running of the software listed? Thanks!
Comment #6
oldblackcrow commentedOkay, here are my settings. I've upgraded to 5.3 and I'm still having that same fatal error.
Drupal 5.3
Configuration file Protected
Cron maintenance tasks Last run 1 hour 26 min ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.45
PHP 4.3.11
Unicode library Standard PHP
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.
Web server Apache
Thanks a million.
Brian
Comment #7
oldblackcrow commentedOkay, your new update has fixed the Fatal Error... Thanks!
Unfortunately, I'm now getting an "internal error". Is there some setting that might cause this or could this be something that my server doesn't like?
Thank you for any suggestions!
Peace,
Brian
Comment #8
Street-1 commentedI have updated to the dev 5.x-1.0 version. Alas, I am still getting the fatal error here.
Comment #9
Street-1 commentedPROBLEM SOLVED!!!!
After a bit of research and some tinkering, I determined the source of the error.
The error was caused by the image directory not existing. Specifically the directory specified in the 'Cafepress images location:' field on the 'CafePress options' page located at /admin/settings/cafepress. I had put the dirctory in the wrong place.
In my case, I failed to understand that the file system path is relative to the folder that Drupal is installed in, even for multisite installations. Thanks to this thread for the answer: http://drupal.org/node/151294.
Comment #10
amysteen commentedStreet, where did you end up putting the images directory? I created one and moved it all over the place and could not get it working. It would be nice if the module would ask you if you would like to store images in files, or specify a folder within files (and create it if it does not exist).
Comment #11
Street-1 commentedyambag,
I placed the image files inside the 'file' directory in the root Drupal directory. Specifically, the path looks like this on my server: /home/.juliette/xxxxxxxxx/mysite.com/files/images/cafepress. My installation is a multisite setup with the site that uses the Cafepress module not being the root site. Regardless of this, the image folder is still inside the Drupal root directory.
As mentioned in my previous post, the 'Cafepress images location:' is set to: files/images/cafepress.
I hope this helps.
Comment #12
jonathanbloom commentedI'm on Drupal 5.3 with PHP 5 and I'm using the development version of this module and I am getting the same fatal error even if the cafepress images folder is in files/images/cafepress.
Comment #13
oldblackcrow commentedWell, I moved the image directory as stated, but I'm still getting an Internal server error. Very frustrating! Thanks for all your help though.
Comment #14
rooey commentedComment #15
electronicmonkey commentedHas anyone yet got this module to run . I initially got errors
and after I moved the cafepress folder into files/images/cafepress , I get a different error when I try to configure the block