Fatal error: Call to a member function read() on a non-object in /home/XXXXXXX/public_html/ADR/modules/cafepress-5.x-0.0/cafepre
alphadawg - October 22, 2007 - 03:56
| Project: | Cafepress Shop-front Integration |
| Version: | 5.x-0.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
Please provide more information.
What platform are you running on etc?
#2
i'm running drupal 5.0 and the cafe press version 5.0 as well
#3
the 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.
#4
I 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.
#5
I'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!
#6
Okay, 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
#7
Okay, 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
#8
I have updated to the dev 5.x-1.0 version. Alas, I am still getting the fatal error here.
#9
PROBLEM 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.
#10
Street, 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).
#11
yambag,
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.
#12
I'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.
#13
Well, I moved the image directory as stated, but I'm still getting an Internal server error. Very frustrating! Thanks for all your help though.
#14
#15
Has anyone yet got this module to run . I initially got errors
Fatal error: Call to a member function read() on a non-object in .....\modules\cafepress\cafepress.module on line 270and after I moved the cafepress folder into files/images/cafepress , I get a different error when I try to configure the block
Fatal error: Cannot use string offset as an array in C:\wamp\........\includes\form.inc on line 680