Want more timely Centmin Mod News Updates?
Become a Member

Wordpress Importing a theme and blocked js

Discussion in 'Blogs & CMS usage' started by pamamolf, Jul 19, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,485
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    2:48 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi
    I create a wordpress domain from Centminmod menu and i just import a theme on Wordpress but i am getting this on console:

    [​IMG]

    Blocked js and php on specific paths? :(

    How can i fix this?

    All configs are the default created from Centminmod menu 22.
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:48 AM
    Nginx 1.13.x
    MariaDB 5.5
    1. How did you install wordpress ?
    2. What wordpress plugin does the url or php belong to ?
    3. Which Centmin Mod version 123.08stable or 123.09beta01 ?
    4. Was it via centmin.sh menu option 22 auto installer Wordpress Nginx Auto Installer (WP Super Cache) ? If so the default wpsecure conf file at /usr/local/nginx/conf/wpsecure_${vhostname}.conf where vhostname is your domain name, blocks php scripts from executing in wp-content for security
    Below links you can see examples of setting up specific wordpress location matches to punch a hole in the wpsecure blocking to whitelist specific php files that need to be able to run.
    Could also be related to tools/autoprotect.sh setup so you can drop a .autoprotect-bypass file into themetek/ directory which contains the .php files to bypass autoprotect.sh Beta Branch - autoprotect.sh - apache .htaccess check & migration to nginx deny all | Centmin Mod Community Then re-run /usr/local/src/centminmod/tools/autoprotect.sh one more time. You can confirm if there's a .htaccess file in themetek/.htaccess and it's contents
     
  3. pamamolf

    pamamolf Well-Known Member

    2,485
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    2:48 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yes i am using latest Centminmod and i install Wordpress from menu 22 and use all default plugins and settings....

    Path looks to be:
    Code:
    /usr/local/nginx/conf/wpincludes/domain.com/wpsecure_domain.com.conf
    I add an exclude to the path of the theme and now all are working great :)

    Only the chrome extension console issue remain as you can see:


    [​IMG]

    It seems that it tries to load the player remotely from:

    Code:
    https://s.ytimg.com/yts/jsbin/www-embed-player-vflCnlsnP/www-embed-player.js
    but something is blocking it... :(

    Is there anything that i can do to allow it?

    Thanks
     

    Attached Files:

  4. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:48 AM
    Nginx 1.13.x
    MariaDB 5.5
    no idea about chrome embed player wouldn't be centmin mod related, probably your chrome extensions etc something
     
  5. pamamolf

    pamamolf Well-Known Member

    2,485
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    2:48 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    It seems that it tries to get the .js file remotely and save it to a pth and then load it and i think Centminmod block this .....
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:48 AM
    Nginx 1.13.x
    MariaDB 5.5
    the GET part is from chrome extension from your chrome browser/pc not server