Categories
CMS Magento Mastering Development

Magento 2.4 upgrade porto CSS issue

I have upgraded my site from Magento 2.3.5 to Magento 2.4 for the previous version Porto was working fine when I upgraded my whole CSS is broken Need Help I Have tried by deploying static content

Categories
CMS Mastering Development Wordpress

Creating a cache but cant seem to find add_widget or edit_widget do_action

Creating a cache plugin when i edit / delete / add post etc, it will reset the cache but can’t find add_widget or edit_widget. Does anyone have the answer? What other do_action am I missing here? add_action( ‘transition_post_status’, ‘qcache_reset’); add_action(‘add_attachment’,’qcache_reset’); add_action(‘edit_attachment’,’qcache_reset’); add_action(‘delete_attachment’,’qcache_reset’); add_action(‘delete_widget’,’qcache_reset’);

Categories
CMS Magento Mastering Development

Magento 2.4 upgrade porto CSS issue

I have upgraded my site from Magento 2.3.5 to Magento 2.4 for the previous version Porto was working fine when I upgraded my whole CSS is broken Need Help I Have tried by deploying static content

Categories
CMS Mastering Development Wordpress

How to preselect and disable specific checkboxes using js/jquery?

I have checkboxes with randomly generated ids on every page view and want to preselect and disable some of them, so they can not get unchecked anymore. With a simple script which looks after value="" I’m able to achieve the preselection but if I try to disable it at the same time, it disables all […]

Categories
CMS Magento Mastering Development

Something went wrong while saving the category

I get an error on Magento 2.3.5-p1 when trying to add products to an existing category. The products won’t save and I get this message: Argument 1 passed to Magento\Catalog\Model\Category\FileInfo::removeStorePath() must be of the type string, array given, called in /cache/vendor/magento/module-catalog/Model/Category/FileInfo.php on line 167 If I navigate to the product page to add to a […]

Categories
CMS Drupal Mastering Development

Layout builder predefined blocks of content

Do Layout builder have a related module that bring predefined components-blocks (e.g carousel, tabs, etc..) like with Bootstrap paragraphs or Gutenbger blocks (cloud)?

Categories
CMS Mastering Development

How to override filename saved in Sprout Forms?

After a form is saved I need to concatenate together the handle with the handle so that the saved filename in the Assets folder is proposalCompanyName.proposalFileUpload.extension. This is the event code in my module/plugin I’ve figured so far: Event::on(Entry::class, Entry::EVENT_AFTER_SAVE, function(Event $event) { if (Craft::$app->request->isSiteRequest) { $formEntryElement = $event->sender; $userSubmittedName = Craft::$app->fields->getFieldByHandle(‘proposalCompanyName’); $userSubmittedFilename = Craft::$app->fields->getFieldByHandle(‘proposalFileUpload’); […]

Categories
CMS Mastering Development Wordpress

WordPress is creating nonce as a logged in user but verifying it incorrectly

I’m having trouble validating a nonce created with wp_create_nonce() inside a hidden input with the name nonce in an html form: <input type="hidden" name="nonce" value="<?php echo wp_create_nonce(‘action_name’); ?>" /> The form submission is done via ajax and validated with check_ajax_referer(‘action_name’,’nonce’). This always returns -1. All REST endpoints have been tested without nonces and work 100% […]

Categories
CMS Mastering Development Wordpress

Gutenberg : how can I get the title of the current block within its ‘edit’ function?

I’m a Gutenberg newbie. I’m trying to display a placeholder component with my block’s edit function: export default function Edit( { attributes, setAttributes, className } ) { return ( <Placeholder icon={ icon } label={ title } > ); } I would like to display the block icon and title, as they have been defined within […]

Categories
CMS Mastering Development Wordpress

Media library links broken WordPress Multisite after SSL update

We updated (not added) SSL to the site The media on the network admin media library works fine, but the media library for the sub-sites displays a grey box for example: Image url looks like this: (when directly accessing this url, server 404 error, not WordPress 404 page) https://domain.com/blog/multisitedomain/wp-content/uploads/sites/2/2020/09/image-file.png breaking it down we have https://domain.com/blog […]