Fatal error when activating my custom wordpress plugin

What I conclude form your comments is pethouseuk-functionality.php include ‘AlterTableComments.php’; use PethouseukFunctionality\AlterTable; $a=”PethouseukFunctionality\AlterTable\test”; $a(); // function call $b = ‘PethouseukFunctionality\AlterTable\AlterTableComments’; $c = new $b; // new object $c->yourfunction(‘test’); // Method call Another file AlterTableComments.php <?php namespace PethouseukFunctionality\AlterTable; interface AlterTableInterface{ function yourfunction($param); } class AlterTableComments implements AlterTableInterface{ function yourfunction($param){ var_dump($param); } } function test(){ echo ‘this … Read more

Flexslider empty slide

I solved issue with putting integer to -1,don’t know really why this helped but if someone get same problem then maybe this will help to him. <?php $i = -1; if (have_posts() ) : while ( have_posts() ) : the_post(); if ($i%2 == 1) echo ‘</li><li>’; ?>

ReferenceError: dokan_assets_url is not defined

It’s a problem with dokan plugin. Adding the code below to your “functions.php” (in your theme directory) will solve the problem temporarily (I hope they fix this conflict in the newer versions): function dk_shortcode_script($shortcodes){ define(‘DOKAN_SHORTCODES’, $shortcodes); ?> <script> var dokan_assets_url = <?php echo json_encode( DOKAN_PRO_PLUGIN_ASSEST ) ?>; var dokan_shortcodes = <?php echo json_encode( DOKAN_SHORTCODES ) … Read more