Categories
CMS Mastering Development

Creating 1000+ entries with numerically generated data

I am migrating some entries into Craft for the first time and my saveUp is quite simple where I use the saveElement function. The problem is after doing a few safeUp’s and safeDown’s I’m getting some appended numbers on my slugs e.g. ‘title-07’ when ideally it would just stay as ‘title’. The slug is based […]

Categories
CMS Mastering Development

Registering events for a specific feed in Feed Me

I’m working with Feed Me to run several feeds, bringing in multiple Entry types. I need to do some additional preparation work via an EVENT_AFTER_PARSE_FEED handler, which works well when I only have a single feed, but fails when I add a second feed. I want to run the event handler for Feed A, but […]

Categories
CMS Mastering Development

Ajax to Route to Controller Action results in 404

I have a very simple module that routes an endpoint Event::on( UrlManager::class, UrlManager::EVENT_REGISTER_SITE_URL_RULES, function (RegisterUrlRulesEvent $event) { $event->rules[‘api/jobs’] = ‘jobs/jobs/get’; } ); To a controller class JobsController extends Controller { protected $allowAnonymous = true; public function actionGet() { header(‘Content-type: text/xml’); return "<?xml version=’1.0′ encoding=’UTF-8′?><rss version="2.0" xmlns:georss="http://www.georss.org/georss"><channel><title>Some Job</title><item>…</item></channel></rss>"; } } Page works fine https://mysite.com/api/jobs but I […]

Categories
CMS Joomla Mastering Development

Email confirmation after joomla password R e s e t

In order to comply with certain US regulations – we need the ability to send a confirmation to the user once their password has been changed. Right now, Joomla will send an email link asking the user to click the link in order to change their password – but there does not seem to be […]

Categories
CMS Mastering Development

pass cart fields on checkout

I have a notes field shown on the cart page. When a customer fills the field out and clicks "Checkout" the contents are not saved. Same goes for Quantity or other custom fields. If "Update Cart" is chosen the data is saved. Is there any way to prevent the checkout from continuing if these fields […]

Categories
CMS Joomla Mastering Development

Display an editor in the front end using a module

I’m trying to display an editor using a module in the front end. I want visitors to be able to edit and create articles but from a module not a component. I’ve tried: jimport( ‘joomla.html.editor’ ); $editor =& JEditor::getInstance(); echo $editor->display("desc", "my text", "600", "400", "80", "15",1); which I think should work but doesn’t (I’ve […]

Categories
CMS Mastering Development

Validation not running on empty custom fields on an entry (when creating programmatically)

I’m trying to save an entry via a controller. They are contact form submission. A few of the fields are required. $section = Craft::$app->sections->getSectionByHandle(‘contactSubmissions’); $entry = new Entry(); $entry->sectionId = $section->id; $entry->typeId = 2; $entry->authorId = 1; $entry->enabled = true; $entry->setFieldValues([ ‘contactName’ => ucwords($data[‘contactName’]), ‘contactEmail’ => $data[‘contactEmail’], ‘contactCompany’ => $data[‘contactCompany’], ‘contactMessage’ => $data[‘contactMessage’], ‘contactHeardAbout’ => […]

Categories
CMS Mastering Development

Craft CMS – 3.6.10 – Why are Assets Backed Up to Temporary Storage?

Since updating Craft CMS to the latest version I noticed that our uploaded files get backed-up daily to temporary storage. Uploaded files live on DigitalOcean Spaces so we have no need to back up these files to the same server Craft CMS resides on. Files are stored on the following path: storage/runtime/temp/tfxrsolmuf/images This caused us […]

Categories
CMS Joomla Mastering Development

0 Call to a member function purgePrivate() on null

I just tried to login and I got this error message that I’ve never seen before. 0 Call to a member function purgePrivate() on null I’m not sure what would have caused it. It’s PHP 7.3. Interestingly I was on PHP7.4 but the redirect system didn’t work so only my homepage showed.

Categories
CMS Joomla Mastering Development

Joomla 4 website’s backend not working after renaming htaccess.txt to .htaccess

I got a issue after renaming htaccess.txt to .htaccess in the public_html folder of my Joomla 4 website (https://www.freepetsitters.com). I renamed it in order to get rid of "index.php" in the URLs. Steps to reproduce the issue Download Helix Ultimate 2 Beta 1 Quickstart Package (https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-beta.1), upload it to the public_html folder of your website, […]