dougblackjr / ee-json-ld

SEO-friendly schema generator for EE3 and EE4
1 stars 0 forks source link

Fatal error after focus in #2

Closed cdlenfert closed 6 years ago

cdlenfert commented 6 years ago

I've installed and gone to the admin page to create a new template. When I choose a type of "event" the following error results.

image

full error text: "<br />\n<b>Fatal error</b>: Uncaught Error: Class 'Spatie\\SchemaOrg\\event' not found in /var/www/kaufman-music-center/www.kaufmanmusiccenter.org_system/user/addons/json_ld/mcp.json_ld.php:303\nStack trace:\n#0 [internal function]: Json_ld_mcp-&gt;ajaxcall()\n#1 /var/www/kaufman-music-center/www.kaufmanmusiccenter.org_system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1661): call_user_func_array(Array, Array)\n#2 /var/www/kaufman-music-center/www.kaufmanmusiccenter.org_system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(945): EllisLab\\ExpressionEngine\\Controller\\Addons\\Addons-&gt;getModuleSettings('json_ld', 'ajaxcall', Array)\n#3 [internal function]: EllisLab\\ExpressionEngine\\Controller\\Addons\\Addons-&gt;settings('json_ld', 'ajaxcall')\n#4 /var/www/kaufman-music-center/www.kaufmanmusiccenter.org_system/ee/EllisLab/ExpressionEngine/Core/Core.php(240): call_user_func_array(Array, Array)\n#5 /var/www/kaufman-music-center/www.kaufmanmusiccenter.org_system/ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\\ExpressionEngine\\ in <b>/var/www/kaufman-music-center/www.kaufmanmusiccenter.org_system/user/addons/json_ld/mcp.json_ld.php</b> on line <b>303</b><br />\n" I've also noticed the version number was not updated to 1.1.0. image

dougblackjr commented 6 years ago

Thank you! I'll work on this.

cdlenfert commented 6 years ago

Thanks Doug. Just checking to see if you've been able to make any progress on a fix. No worries if not, I'll just need to go another direction for adding structured data markup on my project.

dougblackjr commented 6 years ago

I am working on this. Should have something by the end of the weekend.

dougblackjr commented 6 years ago

Fixed this on latest release: https://github.com/dougblackjr/ee-json-ld/releases/tag/v1.2