Hi,
I am getting the error:
Fatal error: Class 'UcOrderProductMetadataController' not found in .../sites/all/modules/entity/entity.info.inc on line 23
- I have tried a registry rebuild (as suggested here: http://drupal.org/node/1570038) doing drush rr
Comments
Comment #1
longwaveUcOrderProductMetadataController is in the uc_order/uc_order.info.inc file. Are you sure this file is uploaded correctly? Try reuploading Ubercart. Also, make sure that you do not have two copies of Ubercart in your modules folder by mistake.
Comment #2
radiocontrolled commentedHi longwave,
I re-uploaded the latest version of ubercart. there is one copy in my modules folder.
I enabled cart, order, product, store
I then ran update.php & cron
I did : drush rr
When I went to:
https://mysite.org/admin/structure/salesforce/mappings/manage/name-of-my...
I got the same error
Fatal error: Class 'UcOrderProductMetadataController' not found in .../sites/all/modules/entity/entity.info.inc on line 23
the uc_order/uc_order.info.inc is in ubercart.
the error is coming when I go to manage a salesforce module I have setup.
I want to use ubercart so that I can sell recurring subscriptions to user roles. e.g. customer signs up for drupal site, and upon purchasing a product, their role is upgraded. Ideally I can use ubercart and salesforce. Any help on this is appreciated. Thanks
your help is appreciated. thanks,
Comment #3
DanZ commentedThis error is happening in relation to a SaleForce module.
A recent version of Ubercart changed the handling of the order product entity. Maybe the SalesForce code cannot handle the change.
Try getting a full backtrace of the error using the Devel module. That will help you pin down the problem.
Also, it is possible that this issue should be moved to http://drupal.org/project/issues/salesforce.
Something is trying to use that controller, but failing to include the required file. That might be Ubercart or might be the SalesForce stuff. A backtrace will help pin down the problem.
Comment #4
longwaveThis looks like a bug in the Salesforce module. It calls entity_entity_property_info() directly, instead of using it as a hook as intended. If it was invoked as a hook, uc_order.info.inc would be loaded automatically and the class would be found.
Moving to the Salesforce queue.
Comment #5
hitesh-jain commentedHi,
This error is happening in relation to a SaleForce module and ubercart module.
I was getting the same error....but when i included below code into sites/all/modules/contributed/entity/ entity.info.inc file in function entity_entity_property_info() it worked for me .Now m salesforce is working properly.
Comment #6
DanZ commentedHacking the Entity module to fix a bug in the Salesforce Suite module doesn't count as a fix.
The fix suggested in #4 should be implemented, posted here as a patch, tested, and committed to the Salesforce Suite development Version. Once all that is done, it can be marked as "fixed". That's the official Drupal.org procedure.
Comment #7
theladebug commentedThis is actually an ubercart problem, the uc_orders.info is missing the line for the info.inc file which contains the entity metadata info.
Simply add the following line to uc_orders.info:
files[] = uc_order.info.inc
Then, clear caches and you'll be good. I will head over and check out the most recent version of ubercart to be sure it's fixed there.
Comment #8
theladebug commentedHere's a link to the patch I submitted for the ubercart module just in case anyone is still running across this issue.
https://drupal.org/node/1570038#comment-7554225
Comment #9
longwaveThis isn't an Ubercart issue. As I described in #4, the Salesforce module is calling entity_entity_property_info() when this function should be called as a hook, which would automatically include the right file. This same issue would affect other modules that implement hook_entity_property_info() and put them in a .info.inc file.
Comment #10
tauno commentedFixed in commit 43e0b47