Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter laluluny

    (@laluluny)

    PS: I also upgraded to WP 4.7.2 today. Could this be the reason for Arconix Shortcodes not to work any longer?

    Plugin Author John Gardner

    (@jgardner03)

    Hi,

    Thanks for using my plugin. The update to v4.7.2 is unrelated. I use a 3rd party service to host the javascript that powers my plugin. Unfortunately they do not have a https version of their CDN.

    To resolve this issue add the following to your theme’s functions.php file:

    
    add_filter( 'arconix_jquerytools_reg', 'my_jquerytools_reg' );
    function my_jquerytools_reg( $args ) {
        $args['url'] = plugins_url() . '/arconix-shortcodes/includes/jquery.tools.min.js';
        return $args;
    }
    

    thanks

    Thread Starter laluluny

    (@laluluny)

    Hello John,

    Thanks a lot for your quick reply! However, I do not yet get it to work.
    I do use a child theme, containing only one style.css. So I added a functions.php – but as soon as I do that, the whole theme crashes. No matter what the functions.php contains. I tried

    • identical-functions.php (same like parent theme)
    • identical-functions.php like parent theme PLUS your code
    • empty functions.php containing only your code

    No matter what, as soon as there is a functions.php in the child-folder, the whole theme crashes.
    Sorry & thanks in advance,
    Karin

    Plugin Author John Gardner

    (@jgardner03)

    Hi Karin,

    That’s not good. Unfortunately I can’t help much with the theme crashing, but while I don’t recommend it, in this case you can edit the plugin files to change the url.

    If you change line 107 of plugin.php to the following:

    
    'url' => plugins_url() . '/arconix-shortcodes/includes/jquery.tools.min.js',
    

    it will have the same effect as the code I gave you previously without the side effect of crashing your theme.

    • This reply was modified 7 years, 9 months ago by John Gardner.
    Thread Starter laluluny

    (@laluluny)

    Thanks for your reply.
    Yes, I already saw, that the very same file is also present in the includes-folder and had played around with it before.
    Now I did exactly what you indicated, but there is no effect. I triple-checked the plugin.php file and yes. line 107 is a you indicated. But the accordions do not open.

    I am not a programmer, so “debugging” is somehow unfamiliar to me. But in Chrome there is a debugging mode (“console”) and it comes up with the following

    https://www.kunst-starter.de/kswordpress/arconix-shortcodes/includes/jquery.tools.min.js?ver=1.2.7 Failed to load resource: the server responded with a status of 404 (Not Found)
    arconix-shortcodes.min.js:1

    Uncaught TypeError: jQuery(…).tabs is not a function
    at HTMLDocument.<anonymous> (arconix-shortcodes.min.js:1)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)

    (unknown) Uncaught DOMException: Blocked a frame with origin “https://s7.addthis.com&#8221; from accessing a cross-origin frame.
    at <anonymous>:1:15

    Eventually you can interpret it? There is something not working with the arconix-shortcodes/includes/jquery.tools.min.js

    • This reply was modified 7 years, 9 months ago by laluluny.
    Plugin Author John Gardner

    (@jgardner03)

    Hi Karin,

    The console is telling you the site couldn’t find arconix-shortcodes.min.js. Can you send the link for the specific page where the accordions aren’t working? That will hopefully help me figure out how to fix the issue.

    Thread Starter laluluny

    (@laluluny)

    Plugin Author John Gardner

    (@jgardner03)

    I gave you bad info. Try the following for line 107

    
    'url' => $this->url . 'includes/jquery.tools.min.js',
    
    Thread Starter laluluny

    (@laluluny)

    Cool – that was IT! It works just fine now (as it always did before https://).
    Thanks for you great plugin!

    And now… let me take you out for a coffee ;-))…

    Regards,
    Karin

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Does not work after https:// upgrade…’ is closed to new replies.