I get :
Fatal error: Call to undefined function content_field_instance_read() in /var/www/reservation/sites/all/modules/ubercart/uc_product/uc_product.module on line 2036
I have all the dependencies installed and enabled in a fresh drupal install but I can not get the uc_hotel module enabled .When I try to enable I get the above message .Does anyone had the same problem ? Any solutions?

CommentFileSizeAuthor
#9 ajax.patch22.66 KBlsdoc77
#9 uc_hotel.tar_.gz444.87 KBlsdoc77
#7 uc_hotel.tar_.gz98.07 KBlsdoc77
#6 ajax.patch7.86 KBlsdoc77
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan’s picture

Status: Active » Closed (duplicate)

Hi
Please download the dev version - it contains a fair few fixes.
There's a dependency for CCK module (drupal.org/project/cck) - I'd incorrectly assumed that everyone would have it already!
Closed - duplicate of #860158: Enable uc_hotel caused blank page
LR

lsdoc77’s picture

Thanks for your reply.I realized that it was from CCK and now it works fine.

By the way I am trying to make some addittions to the module to use ajax to load the avaliability calendars in the node view pages with a select box to choose the month .
If someone is interested I can upload the chnages ..

larowlan’s picture

For sure - grab the module via git (see version control tab of project page) and upload your patch against a new issue.
If you feel so inclined, make it an admin option so people can turn it on/off.

LR

lsdoc77’s picture

I'm quite new to drupal development and I'm not familiar with the git system.
I've actually finished the changes for using ajax (and it's working fine :-) but in a local drupal installation.
How could I extract the changes and the new files to commit them?

larowlan’s picture

If you've already made the changes, the best way to do it would be to put two versions of the module side by side in your temp folder and run diff on them.

Eg with drush

cd /tmp
drush dl uc_hotel-6.x-2.0-beta4
mv uc_hotel uc_hotel_orig
cp -r /path/to/your/uc_hotel uc_hotel
diff -ur uc_hotel_orig uc_hotel > somefile.patch

or without drush

cd /tmp
wget http://ftp.drupal.org/files/projects/uc_hotel-6.x-2.0-beta4.tar.gz 
tar -xzvf uc_hotel-6.x-2.0-beta4.tar.gz
mv uc_hotel uc_hotel_orig
cp -r /path/to/your/uc_hotel uc_hotel
diff -ur uc_hotel_orig uc_hotel > somefile.patch

Then upload the patch file

lsdoc77’s picture

FileSize
7.86 KB

larowlan thank's for the quick answers.The drush is very helpful..
The patch is for the uc_hotel-6.x-4.0-alpha1 version .
I will try to make it also for version 2.0.

lsdoc77’s picture

FileSize
98.07 KB

By the way there are also some new files I created (I guess the patch doesn't include them ) so I upload the whole module compressed

larowlan’s picture

My preference is against the 4.x version, this is where new features should go

lsdoc77’s picture

FileSize
444.87 KB
22.66 KB

Ok , this is for the version 6.x-2.0-beta4..
I include the patch and the whole module

lsdoc77’s picture

Hi larowlan ,
Just came back from holidays.. Wanted to ask if you checked the patch and have any remarks?