?
avatar no-matter-0
no-matter-0
21 Feb 2020

when trying to install a very simple plugin I get the error JSON Parse error: Unrecognized token '<'

I can install this plugin on Joomla 3.x but not 4.0

avatar no-matter-0 no-matter-0 - open - 21 Feb 2020
avatar no-matter-0 no-matter-0 - change - 21 Feb 2020
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Feb 2020
avatar alikon
alikon - comment - 21 Feb 2020

can you share with us the plugin that you are trying to install ?
in this way we can better try to answer you
thanks

avatar no-matter-0
no-matter-0 - comment - 21 Feb 2020

2 files
ymages.xml

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.0" type="plugin" group="system" method="upgrade">
    <name>System - Ymages</name>
    <author>Joomla! Project</author>
    <creationDate>February 2020</creationDate>
    <copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later.</license>
    <authorEmail>web@ymages.com</authorEmail>
    <authorUrl>ymages.com</authorUrl>
    <version>1.0.0</version>
    <description>custom library.</description>

    <files>
        <filename plugin="ymages">ymages.php</filename>
        <filename>index.html</filename>
    </files>
</extension>

ymages.php

<?php
/**
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later.
 */

defined('_JEXEC') or die;

/**
 * Ymages plugin class.
 *
 * @package     Joomla.plugin
 * @subpackage  System.ymages
 */
class plgSystemYmages extends JPlugin
{
    /**
     * Method to register custom library.
     *
     * return  void
     */
    public function onAfterInitialise()
    {
        JLoader::registerPrefix('Ymages', JPATH_LIBRARIES . '/ymages');
    }
}
avatar no-matter-0
no-matter-0 - comment - 21 Feb 2020

the plugin is installed and works but I get this error

avatar chmst
chmst - comment - 21 Feb 2020

I could install on both, J3.9.15 and J4 without error

Use <name>plg_system_ymages</name>
and remove line <filename>index.html</filename>.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28004.
avatar no-matter-0
no-matter-0 - comment - 22 Feb 2020

Then I have to try a clean install

thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28004.

avatar brianteeman
brianteeman - comment - 22 Feb 2020

Closed as not a core joomla issue

avatar brianteeman brianteeman - change - 22 Feb 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-02-22 09:12:36
Closed_By brianteeman
Labels Added: ?
avatar brianteeman brianteeman - close - 22 Feb 2020

Add a Comment

Login with GitHub to post a comment