Tech blog

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
Multithumb found errors on this page:

There was a problem loading image http://static.xscreenshot.com/2017/06/05/17/screen_a4ded3298fe6c189cfc4b5e115ee7611
There was a problem loading image http://static.xscreenshot.com/2017/06/05/17/screen_a4ded3298fe6c189cfc4b5e115ee7611
screen_a4ded3298fe6c189cfc4b5e115ee7611
Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100) (rc=-10)
Please try reinstalling VirtualBox.
where: SUPR3HardenedMain what: 2 VERR_PERMISSION_DENIED (-10) - Permission denied.

After each OpenSuse update (I have Leap 42.2 by now) I get the same error with VirtualBox.

Just a note for mysefl to fix it

sudo chmod 4711 /usr/lib/virtualbox/VirtualBox

I'm really tired to do it manually myself, but see no other way out by now.

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Hyptiotes cavatus nonvenomous Clear Creek Hocking Co. OH December 12 2015Native slack .rpm package refuses to install at OpenSuSE. It requers appindicator, which in fact is installed. Slack doesn't see it, so installation fails.

The workaround is to extract the slack rpm file somewhere and to run it for your user only, not system-wide.

So, download slack rpm somewhere. I used my local temp directory, which has nothing with any system /tmp. Just a folder where I place some temporary file.

In my case it was /home/user/Desktop/temp/slack-2.6.2-0.1.fc21.x86_64.rpm

I went to /home/user/Desktop/temp/ and run command rpm2cpio < ./slack-2.6.2-0.1.fc21.x86_64.rpm | cpio -idmv

This created a usr folder with all needed slack files. Next I went to /home/user/Desktop/temp/usr/bin and just run slack executable from it.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

xml spiderTo use own XML-defined Joomla from there are several Joomla plugins or advices. Mostly use the same couple of approaches is used.

You XML file is loaded either onContentPrepareForm (Aixeena CCK, ZUNO example) or even earlier (Form XML Override) - onAfterRoute by just adding a for search path like this JForm::addFormPath(JPATH_SITE.'/templates/system/forms/'.$option);

But these methods have one problem (or benefit, depending on the requirement) - you XML form doesn't replace the original one, but extends it. You can replace, redefine or add new fields, but never to remove a field from the original form. Besides, there is a problem with the order of newly added fields.

If you want to load your form instead of the original one, you must reset it with true parameter $form->reset(true);

This will kill the original XML. After that you are free to do like this  $form->load($yourxml); or this $form->loadFile($path_to_your_xml_file);

This is implemented in MVC Override plugin. Just install and place your override XML in the correct place.

Earlier I was younger and stupid and used a mad trick for this. The trick is found below, but please, don't tell anyone about it, because it's a shame on me.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

SSL spiderI tried to install SSL at my local apache under OpenSuse. Manuals say to run /usr/bin/gensslcert

I got a long output with some errors the fist of which was

creating CA request/certificate ...
problems making Certificate Request
140601438258832:error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short:a_mbstr.c:147:minsize=1
something ugly seems to have happened in line 119...

As it turned out it needed a hostname to be specified and on some reason my configuration somewhere didn't have it specified. So to elimitane the error I had to use -n key and domain name. Since it's for local usage, I just used gruz

/usr/bin/gensslcert -n gruz

 

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Remove joomla message from queueJoomla 3.6

I needed to remove a message already pulled to Jooma queue by JFactory::getApplication()->enqueueMessage(JText::_('JERROR_NOLOGIN_BLOCKED'), 'warning');

I found a solution here http://www.compago.it/manuali/33-programmazione/382-how-to-create-and-delete-message-in-joomla.html and made it a little more universal:

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Cerbalus-aravensis-spider-photo-3 Task

Get original Joomla URL from a SEF one. I.e. I want to know which is the real joomla URL, while the SEF one is http://sandbox2.com.us/index.php/weblinks-component

This may be needed while developing or making modifications in Joomla extension to use the real internal joomla link.

Solution for Joomla 3

The code below alswo works in most cases, but at least once I've met a strange behaviour - url parts were messed up with some Google Analytics variable. So I gave up using it

Result in $url: index.php?Itemid=229&option=com_contact&view=contact&id=1

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

i_013.png

I was looking for a couple of hours how to inspect a JQuery tooltip in firebug. A :hover tooltip is not a problem. But a mouseover-mouseout tooltip was not possible to catch.

Stackoverflow answers were too complicated or didn't work.

And finally it turned out to be very easy.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

ПавученяточкоIt's a note for myself for the future. This concerns non-English (cyrillic) content.

When saving a not very large article in Ukrainian (530 Kb of HTML code) I got that terrible memory limit exhausted or Maximum function nesting level of fatal error. At the same time a larger article in English was saved without a problem.

So the reason was content versioning (history) of articles. Had to disable it in the article options. Worked.

 

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Кажуть, це павук - вегетаріанецьI migrated an old Joomla 1.0 Ukrainian web-site to Joomla 3 and found no articles' aliases after migration. Joomla 1.0 didn't use aliases, though there was such a field. So I created a small script to regenerate articles` aliases.

Steps.

Backup #__content. Twice.

Place the code from below into a file named templates/system/makealias.php

Run in browser yoursite.com/?tmpl=makealias and wait till page is loaded.

Remove the file templates/system/makealias.php

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
Multithumb found errors on this page:

There was a problem loading image http://static.xscreenshot.com/2016/03/07/16/screen_4063dcccbdc913660331e2914070b38e
There was a problem loading image http://static.xscreenshot.com/2016/03/07/16/screen_4063dcccbdc913660331e2914070b38e

screen_4063dcccbdc913660331e2914070b38eI needed to update a plugin settings upon an extension installation. Here is a sample of my code.

The problem was a little harder to solve, because of the nested objects in the params object.

The screenshot is hear for better understanding of my data structure.

Subcategories

General Joomla FAQ based on own experience.
Some linux tips just not to forget.
FaLang translation system by Faboba
ОУН-УПА: легенда спротиву Українська Дивізія «Галичина» Зиновій Книш: спогади й матеріали до діяння УВО і ОУН Реаніматор електронних текстів Забуттю не підлягає 1917-1991

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 11:45
    The fields %TO_NAME% and %TO_USERNAME% are empty

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 11:43
    My fault, I made it

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 10:46
    I did. Now I'm asking me how to put the surename into the email... :-|

    Read more...

     
  • NavigationAry - navigate between Joomla menu items like between articles using "prev - next"

    Berndi Berndi 29.06.2019 15:59
    I also miss content in %TO_NAME%

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 29.06.2019 15:15
    Hi gruz, I have the problem, that when I use the %AUTHOR% tag, the plugin dosen't send the author ...

    Read more...