• Resolved mlipenk

    (@mlipenk)


    This is the example after the plugin is installed:
    Example 1:
    [jsoncontentimporter url=”https://www.kux.de/extra/json/digimuc/location.php” numberofdisplayeditems=”30″ basenode=”location”]

    [/jsoncontentimporter]

    However I get:
    Fatal error: Uncaught Error: Call to undefined function mb_check_encoding() in /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php:271 Stack trace: #0 /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php(247): JsonContentParser123->replacePatternWithKeyin(‘ </p>

    • {l…’, ‘locationtypname’, ‘Unternehmen’, ‘locationtyp’) #1 /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php(187): JsonContentParser123->replacePattern(‘ </p>
    • {l…’, ‘locationtypname’, ‘Unternehmen’, ‘locationtyp’) #2 /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php(129): JsonContentParser123->checkType(Object(stdClass), ‘object’, ‘ </p>
    • {l…’, ”, 4, ‘locationtyp’, NULL) #3 /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php(169): JsonContentParser123->checkType(Array, ‘array’, ‘ </p>
    • {l…’, ‘locationtyp’, 3, ”, NULL) #4 /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php(135): J in /var/www/html/wp-content/plugins/json-content-importer/class-json-parser.php on line 271
Viewing 2 replies - 1 through 2 (of 2 total)
  • I haven’t got this json totally figured out yet but I can tell you that you can’t call an open list like this search duckduckgo the way you have it set up it has no idea what your looking for.
    Your first url= is a proper json file, the duckgo url is just a search list and your eventname leads to a 404 error.

    Plugin Author berkux

    (@berkux)

    Hi,

    the error message is:
    “Fatal error: Uncaught Error: Call to undefined function mb_check_encoding()”

    mb_check_encoding() is required for my plugin, unfortunately.

    mb_check_encoding should be installed with PHP 4 >= 4.4.3, PHP 5 >= 5.1.3, PHP 7:
    http://php.net/manual/de/function.mb-check-encoding.php

    Also unfortunately this is part of mbstring, which is a non-default extension of PHP (but almost every time there):
    http://php.net/manual/de/mbstring.installation.php

    The reason for needing mb_check_encoding is, that JSON can come in ISO, UTF…
    To manage that we need mbstring…

    So: Check your PHP and install mbstring…
    Or: Add “function_exists(“mb_check_encoding”) &&” at lines 271 and 277 of the plugins file class-json-parser.php

    The next free version will have this (but it’s unclear when this version will be released)
    Sorry about that…

    Bernhard

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Should the first example in the plugin actually work?’ is closed to new replies.