Regular Labs Library

regularlabs/src/EditorButton.p​hp on line 164

2 years 7 months ago #79102

Vito's Avatar Vito

Hello

After last update on 1.4.2018 I couldn't add or edit articles (server error 500)...after debug -> regularlabs/src/EditorButton.php on line 164

private function isInstalled()
	{<?php
/**
 * @package         Regular Labs Library
 * @version         18.4.406
 * 
 * @author          Peter van Westen <>
 * @link            http://www.regularlabs.com
 * @copyright       Copyright © 2018 Regular Labs All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

....
..
...

		$extensions = ! is_null($this->check_installed)
			? $this->check_installed
			: [$this->main_type];

		return Extension::areInstalled($this->_name, $extensions);
	}
}
}

Problem was last
}
(line 164).
I delete it and then was ok.

2 years 7 months ago #79106

Peter van Westen's Avatar Peter van Westen Admin

This is weird, as there is no extra '}' in the original file in the zip.
Can you check the contents of that file in the zip when you download it directly from the Regular Labs website?
www.regularlabs.com/downloads

How did you update?
Through the Joomla updater? Regular Labs Extension Manager? Manually uploading the zip? MyJoomla.com?

2 years 7 months ago #79108

Peter van Westen's Avatar Peter van Westen Admin

That whole file looks jumbled up, by the way.
That whole 'private function isInstalled()' line should not be above the comment section. No idea how/why that is being done.

2 years 7 months ago #79109

Vito's Avatar Vito

It was automatic update with myjoomla.com ...

2 years 7 months ago #79111

Peter van Westen's Avatar Peter van Westen Admin

I thought so. Join the gang here:
www.regularlabs.com/forum/extensionmanag...1-updates-broke-site

2 others reported the same type of issues (other files).
Both also using MyJoomla.
Seems MyJoomla is causing files to get jumbled up...