I am currently trying to extend Place (custom dataobject) with silverstripe addressable module. However, I got the below error:
[User Error] collateDataFields() I noticed that a field called 'LatLngOverride' appears twice in your form: '(unknown form)'. One is a 'CheckboxField' and the other is a 'CheckboxField'
Addressable module works for Page class object but not dataobject class.
Does anyone have any idea what is this error about?
Thanks.
For people who is facing this problem, the author has fixed it in the latest commit.
https://github.com/silverstripe-australia/silverstripe-addressable/commit/2dbd6f7013561e4135850ee81999ece22ca73498
Related
Sorry if this may sound like a dumb question. Yesterday I've updated my Wordpress Plugins and suddenly everything crashed, returning a fatal error. I'm trying to reactivate the website via recovery mode, but I can't resume the activity of the core plugin of my theme, because it returns this error
An error of type E_COMPILE_ERROR was caused in line 130 of the file /var/www/wptbox/wp-content/plugins/lastudio/includes/extensions/swatch/class-lastudio-swatch-widget.php. Error message: Cannot make non static method WC_Widget_Layered_Nav::get_main_search_query_sql() static in class LaStudio_Swatch_Widget
While in safe mode, my website footer disappeared, and so did every product that was showcased in every page of the website. The products are still present in WooCommerce, but the showcase grid were completely deleted.
What can I do?
Thank you so much in advance for your kind help.
Possible Duplicate with Fatal error: Cannot make non static method
The Code Refference is : https://woocommerce.github.io/code-reference/files/woocommerce-includes-widgets-class-wc-widget-layered-nav.html#source-view.429
You could contact the plugin developer to handle this error.
Temporary solutions is :
go to line 130 on file /var/www/wptbox/wp-content/plugins/lastudio/includes/extensions/swatch/class-lastudio-swatch-widget.php
change {class name}::get_main_search_query_sql() to \WC_Query::get_main_search_query_sql()
I am using armember plugin to create a form and also use stripe plugin to integrate the payment gateway. so I have two stripe plugin one for armember and one for another class so. I am getting this error:
PHP Fatal error: Cannot declare class Stripe\Stripe, because the name is already
please help to resolve this.
It is looking like Stripe class name exists in both plugins and we can't use two classes with the same name in same module/directory.
To resolve it, customize one plugin i.e replace the class name and it's all reference in the plugin from Stripe to MyStripe, it will make the class unique and then you can use both classes without any conflict
My problem is the same as in this question but my error page won't extend base.html.twig. base.html.twig doesn't seems to be the problem. When i try to extend base layout, I get ResourceNotFoundException. In other twig layouts specific to a ceratain bundle, it works but if I try to override error template, it throws this error.
The key problem is probably the ResourceNotFoundException but i know I'm extending it the right way...
extends '::base.html.twig'
I'm not new to Symfony2 and I've used template inheritance quite alot. If i try to run the error page without extending the base layout, the error page shows. I've done all the cache clearing, I've run it in the prod environment but the page won't extend the base layout.
Anyone knows what could be the problem? Is there any other way that i could get the resource to the error template or debug to see what path is Symfony looking for when searching base.html.twig but cannot find one?
I'm creating a multi module app. It's a big app that I am porting to Phalcon. It has many different sections, so I am creating a module for each of the main ones.
I do not seem to be able to query a model in one module from a controller in another module. In this example I want to list some members on the home page. The home page is in the main module and the users model is in the users module. I'm using namespaces so in the index controller I have for example,
$this->data['members'] = \App\Users\Models\Members::find();
That produces the following error;
Fatal error: Class 'App\Users\Models\Members' not found in C:\wamp\www\xyz\app\main\controllers\indexController.php on line 12
I've checked and double checked the namespacing is correct. So how can I interact between modules?
So what you need to do is register the namespace of the other module in the Module.php class (or the bootstrap for global availability) for the module you want to query from! Woo hoo - end of head scratching.
I'm working on a Magento site which has drop down menus to select different product variations.
However, it recently stopped working and now displays the following error along with Item Cannot Be Added to Cart when trying to add an item to the cart.
Fatal error: Call to undefined method Mage_Catalog_Helper_Product::initProductLayout()
in
/home4/wisestor/public_html/app/code/core/Mage/Catalog/controllers/ProductController.php on line 67
I'm afraid given the information you provide this is a little like fishing in the dark without a lamp. Like, what Magento version are you using?
That said, since Magento 1.5 that method is implemented on the catalog/product_view helper, (as opposed to the catalog/product helper referenced in the error message you posted).
I believe you must have somehow hacked the core code, messing up the Mage::helper() factory method call in the Mage/Catalog/controllers/ProductController.php controller around line 67 to produce that error.
So instead of
Mage::helper('catalog/product')->initProductLayout($product, $this); you want
Mage::helper('catalog/product_view')->initProductLayout($product, $this);