Daniel-KM / Omeka-S-module-Shortcode

Module for Omeka S that allows to insert shortcuts in site pages in order to render more content via a simple string like `[shortcode]`.
Other
0 stars 1 forks source link

error: Declaration of Shortcode\Shortcode\AbstractShortcode::setShortcodeName(string $shortcodeName): #1

Closed james89321 closed 2 years ago

james89321 commented 3 years ago

Hi, I used a shortcode in site pages, and I get following error message. Please help me with this error.

Fatal error: Declaration of Shortcode\Shortcode\AbstractShortcode::setShortcodeName(string $shortcodeName): Shortcode\Shortcode\AbstractShortcode must be compatible with Shortcode\Shortcode\ShortcodeInterface::setShortcodeName(string $shortcodeName): Shortcode\Shortcode\ShortcodeInterface in /home/web/omekas/modules/Shortcode/src/Shortcode/AbstractShortcode.php on line 7

I’ve tried the following shortcode. [items num=3 sort=created order=desc] [items id=3] [items site=1] [count resource=items]

System version Omeka s v3.0.2 php 7.3

Daniel-KM commented 2 years ago

Thanks, it is fixed. It was related to the version of php.