Wednesday, November 20, 2019

Joomla 3.6.2 – The most recent request was denied because it contained an invalid security token.

When the Joomla 3.6.2 update finalizes I get the following message.

The most recent request was denied because it contained an invalid security token. Please refresh the page and try again.

I just delete out everything in the URL after “administrator” and hit refresh.  I can’t wait till this gets fixed. Have to admit I am disappointed with this last round of Joomla updates.

The next site I started the upgrade. I use Akeeba so it ran an Akeeba backup, and then gave me the error.  When I cleared the the stuff in the URL after “/administrator/” the site said I still needed to update to 3.6.2.

The site was telling me to update other components so I started with upgrading Akeeba from 5.1.3 to 5.1.4.

After I updated Akeeba to 5.1.4 and tried the Joomla update the update installed correctly.

I hope this helps someone else out there…

 

Install Drupal 8 on WAMP

I wanted to play around with Drupal 8. I often use WAMP and I have also install XAMP. They both work well. WAMP can be a tougher install in my opinion especially on Windows 10.

During my Drupal install I ran into Mod_Rewrite, OPCach and XDebug settings that needed to be corrected before the install would complete. I found the following video on YouTube that solved my issues perfectly.

Thanks to the guy who put this together.

I hope this helps someone else out there…

 

Joomla 3.6.2 update – Email Cloak Fix

Another Joomla! update just two days after the 3.6.1 update. It is getting stressful to stay on top of all these update and the pitfalls one can encounter.

Here are some tips I have come across this morning.

Joomla – https://docs.joomla.org/J3.x:Updating_from_an_existing_version

JoomlaShack – https://www.joomlashack.com/blog/tutorials/361?utm_source=Alledia&utm_campaign=a0292c0a93-The_Alledia_Newsletter&utm_medium=email&utm_term=0_80803af9fd-a0292c0a93-270714557&goal=0_80803af9fd-a0292c0a93-270714557&mc_cid=a0292c0a93&mc_eid=bb80f31be3

I have updated a few sites this morning and had no real issues. I did have to do the following to get everything to work.

  • Go to Extension > Manage > Database.
  • Click “Fix”.

I had to upgrade my Akeeba to 5.1.4 on one site first before the update worked.

This brings about the question of how much to charge customers to keep the site up-to-date. That will depend on how much you charge per hour and how complicated the site is to review to ensure the upgrade didn’t break anything. Here are some things I am putting into considerations.

  • Time it takes to upgrade( 30 minutes ) I timed my 3.6.1 update to 3.6.2. It took about half a hour to update Akeeba, run the Joomla update, clear the cache and quickly check the site.
  • How many Joomla Updates per year – ( 10 times per year ) I wasn’t able to find this out directly, but another site that did a comparison on CMS’s stated that every 31 days is Joomla’s update cycle, so roughly 10 updates per year. That brings us to about 5 hours per year in just updating the Joomla! core if nothing goes wrong.

I hope this helps someone else out there…

 

[Solved] – Akeeba for WordPress – The output directory is not writable

I had to move a WordPress site from a test server to my localhost. When I finished my changes I went to run an Akeeba backup, but got the error that the default directory wasn’t writable.

I found this article that helped me.

https://www.akeebabackup.com/documentation/warnings/ch01.html#q001

The solution was to go into Akeeba  >> Configuration Page >> in the output directory field put in “[DEFAULT_OUTPUT]”.

I hope this helps someone else out there…

 

Enforce Password Complexity in Joomla

Well you can learn something new everyday.  I was looking at a proposal that I thought Joomla would be a good fit for. The proposal asked about enforcing password complexity. I wasn’t sure that Joomla 3.6 did this natively, but it does. I found the following article that quickly demonstrates how to set it up.

http://officialjoomlabook.com/elin-waring-official-joomla-book-blog/joomla-3-1-4-password-strength-options

Here is how it looks in Joomla 3.6.

joomla_password_complexity

I hope this helps someone else out there…

 

Joomla 3.6.1 update – An error has occurred – Cannot write to log file.

I recently moved a site to a new Godaddy hosting account. I had to move the site manually instead of using Akeeba backup, so I had to make few changes to the configuration.php file.

When I got the 3.6.1 available update in the control panel I test my localhost version and everything worked perfectly, so I decided to do it on the live site. I got the following error when I went to install the update.

joomla_3_6_1_error_log_1

A Google search lead me to incorrect path to the log directory in my configuration.php file. Here is what mine looked like.

joomla_3_6_1_error_log_2

I logged into the Godaddy hosting CPanel and found the “Home Directory” path.

joomla_3_6_1_error_log_3

I added that to the configuration.php file and used FTP to upload the file. Cleared the site cache and ran the update again and it worked.

I had tried just using Filezilla to change the folder permissions, but that didn’t do it. When I would go into the administrative area of the site and go to System >> System Information >> Folder Permission the log directory was still unwritable.

I hope this helps someone else out there….

 

 

Upload .vcf files in joomla

I wanted vcards or .vcf files to uploaded and downloaded from a joomla site so the customer could update them themselves.

I had K2 installed on the site and it was easy for me to download the .vcf file, but uploading was unsupported.

JCE was installed and I discovered that JCE “File Manager” add-on has an allowable file extensions built in. It was easy for me to add the extension. Then I used “JCE File Browser” to upload the files. Here is the article that helped me out.

https://www.joomlacontenteditor.net/support/forum/unable-to-link-to-a-file-with-extension-vcf

I hope this helps someone else out there…

 

K2 edit blog button not showing

I am using K2 component on a Joomla site and find it very useful.

I was setting up Front-End adding and editing of K2 blog items.  Here is a great video for setting that up.

I ran into this issue with the template that has a “HTML” override for the K2/templates/default/category_item.php. The code looks like this.

k2_blog_post_edit_code

The issue was the templates “Modal”.   I removed the highlighted class and rel tag, and added “_blank”. Now the “Edit item” button was showing and I could click it and edit the post. It of course opened in a new window.

I looked at the code from the original K2 component/templates/default/category_item.php file. It has “data-k2-modal=”edit”” to open in a modal. I added this line and I was close enough.

One issue remained where the “close” button didn’t close the window; however, if I clicked outside the modal window it would close the modal window.

I hope this helps someone else out there….