Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Call to a member function findByShopDomain() on a non-object #3

Open
oxy-code opened this issue Apr 11, 2014 · 2 comments

Comments

@oxy-code
Copy link

During the installation process of my app into shopify store, this plugin asks my login credentials to install .

After i entering my credentials, this error was occured

Fatal error: Call to a member function findByShopDomain() on a non-object on the line 58 in app/Plugin/Shopify/Controller/Component/ShopifyAuthComponent.php


$shop = $controller->Shop->findByShopDomain($shop_domain);



Thanks in Advance

@prestomasher
Copy link

I have the same issue. Any help?

@oxy-code
Copy link
Author

I think they have missed to include Shop.php (Model file) into the plugin.

Create a model name called 'Shop' and it's structure will be,

CREATE TABLE IF NOT EXISTS `shops` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_domain` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  `is_active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants