Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default troubleshoot help - same code on different site behaves differently

    Hi.

    Not sure where to post, in case please move.

    I have prepared a plugin to submit for the EU people needing the cookie consent (non-sense).
    It works fine on my local test, so I decided to test it on live sites before submitting it, but for some reason out of three sites it works only on one.
    Need your help to troubleshoot.
    It consists of a js snip put at the end of tpl_main_page.php, two files in jscript folder (jquery and js files), and language extra_definitions file.
    Could you please take a look, and see if you can spot why it shows correctly on editricebahai dot com and doesn't show on tesoreriabahai dot org

    Thank you

  2. #2
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: troubleshoot help - same code on different site behaves differently

    Isn't the cookie notification thing only if your company is based in Europe? doesn't matter if your company is based outside of the EU. As far as I know.

    Edit: Just noticed the site is Italian, so Ignore me!

  3. #3
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: troubleshoot help - same code on different site behaves differently

    Looks like your formatting of the JS is wrong. It's all on one line which is commented out with "//" thus ignoring all of the code.

    Broken site:

    2pr9g.png

    Working site:

    code working.png
    Last edited by joecooper; 8 Jun 2015 at 01:55 PM.

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: troubleshoot help - same code on different site behaves differently

    Thanks you.

    There is something happening during the upload, or on the server, as the files are the same; I need to contact the hosting.
    I'll update.

  5. #5
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: troubleshoot help - same code on different site behaves differently

    This is really strange.

    I reuploaded the file (tpl_main_page.php) on tesoreriabahai, and it now works fine.
    So I go on and try it on the third site, plus the live test of this latter (making it the fourth), on these last two the script looks to be on multiple lines, however it does not display.
    These two are cadante dot com, and afzdesign dot com/cadante_151 (this latter being the live test of the former).

    Host says might be upload issues, but I did it quite few times, and like said it seems the script is formatted as it should.

  6. #6
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: troubleshoot help - same code on different site behaves differently

    Load the site and press F12, then go to Console. There are a load of errors of missing files. Best to start with them.

 

 

Similar Threads

  1. v150 Different server respond to the same editing differently
    By scott_ease in forum General Questions
    Replies: 2
    Last Post: 5 Jan 2015, 07:06 AM
  2. v139h Same code, different results
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jun 2013, 08:35 AM
  3. moving site to different URL on same server
    By JohnBoyCR in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2009, 08:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg