error in all courses

whatif
Forums
Hi I am using a latest version of Opigno_LMS_1.7 on window xp. When the course is clicked in "all courses" , error occurs: 'The website encountered an unexpected error. Please try again later' I cannot retrieve the content of course due to this error. Thanks in advance
Profile picture for user James Aparicio
James Aparicio

Hi whatif,

Hi whatif, Can you please go to Reports -> Recent log messages and post the content, right after you get this error? Best regards
whatif

Here is the content of error

type php Date Tuesday, March 25, 2014 - 15:06 User study Location http://study.sharelinky.com/course/6/installation Referrer http://study.sharelinky.com/course-catalogue Message EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 335 of /home/sharel6/public_html/study/profiles/opigno_lms/modules/contrib/entity/includes/entity.wrapper.inc). Severity error Hostname 60.242.192.31 Operations
Profile picture for user James Aparicio
James Aparicio

Hi whatif,

Hi whatif, Can you please disable and uninstall the commerce app and install again? It seems it is an error related to the commerce app, maybe an installation error. Best regards
learntool

Same problem

EntityMetadataWrapperException error also appears here. I can disable the commerce app, even click "uninstall". Next time i launch installed apps, it's still there, but now without unistall option. I use a custom D7 installation, also using the multisite feature for evaluating Opigno as a possible solution.
learntool

Update...

Removed app folders manually, re-installed them manually, run update.php, flush caches – problem still appears. Every commerce-enabled node leads to error. EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (Zeile 335 von /Users/xxxxxx/sites/all/modules/entity/includes/entity.wrapper.inc). Runs on OSX, Acquia Desktop Tool, PHP 5.3.8
axel

Hi learntool

Hi learntool Could you try to: 1. Disable the commerce module 2. Uninstall it completely (from /admin/modules/uninstall) 3. Remove the additional fields added by commerce in the course content type (/admin/structure/types/manage/course/fields) 4. Clear cache, run update.php 5. Reinstall commerce app Please keep us updated
learntool

No changes

Hi Axel, thank you for your reply. I tried the way you proposed, but nothing changes.
Profile picture for user James Aparicio
James Aparicio

Hi learntool,

Hi learntool, You are getting this error because the rules that opigno commerce app come with are still there. Did you uninstall the opigno commerce app? Or just disabled it? Please make sure that all commerce modules are disabled and uninstalled. Aswell as the opigno commerce app. If the error still persists, please manually remove the commerce app rules. "Line item is an OG product", "Fetch OG product price", "Fetch OG from line item", "Activate bought OG membership", "Create OG Product for course", "Create OG Product for course (component)", "Calculate OG Product price", "Give access to OG on checkout". After everything works correctly with all modules disabled/uninstalled, enable the opigno commerce app module again. Keep us posted, Best regards James Aparicio
sunjavagroups

@James, Please help with this

< "Line item is an OG product", "Fetch OG product price", "Fetch OG from line item", "Activate bought OG membership"> Where and how do I fetch OG product price? Please can u be more explicit in explanation. thank you.