Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #20198

    Hi,

    I saw this thread.

    http://www.kriesi.at/support/topic/saving-didnt-work-on-template-builder

    And I got a same error.

    I reinstalled the theme,but I couldn’t save any changes and couldn’t add new element.

    I can add new articles and portfolios,and any other function works.

    I hope you can help me,

    Regards,

    Takafumi

    #106628

    Hi,

    You are currently using wp 3.41 when the latest version is wp 3.51. Please update WordPress to the current version, or use an earlier version of the theme than 1.7.

    Thanks,

    Nick

    #106629

    Hi,Nick

    I updated WordPress to the current version,and I reinstalled theme.

    (I downloaded theme files from theme forest’s download page.Is this earlier version?)

    But template builder still doesn’t work.

    I forgot to write,

    In last week my page often didn’t display correctly,so I contacted the rental server support.

    Then the support staff moved my server area.

    And he said IP adress was changed.

    After this change,template builder didn’t work.

    So I contacted the rental server support again.

    And said template builder didn’t work.

    Then he searched the problem,and he said there was an error in this file

    ~/framework/js/avia_option_pages.js

    And he said,reinstall the theme.

    Does this change relate?

    Takafumi

    #106630

    Hi,

    The thing is, I tried on my localserver and on my live server and I am not experiencing these problems. Also Choices Theme is running on thousands of websites and if this was a systematic problem, right now the support forum would be exploding from identical support requests.

    This makes me believe that this is a problem that is unique to your particular installation, and the question is what that is. The problem is either your javascript is not working, bad server permissions, no recognition of character set.

    You are hosted by FC2?

    Javascript


    When you are on the page in the backend where the save button for template is, if you right click on an empty area of the page, and view source, please paste here what you see in the <body … > tag ((use ctrl-f to find it. Please paste the whole thing, i am particularly interested in the classes found inside) … below is what mine looks like. There is also that little piece of javascript after it.

    <body class="wp-admin wp-core-ui no-js  choices_page_templates auto-fold admin-bar branch-3-5 version-3-5-1 admin-color-fresh locale-en-us no-customize-support">
    <script type="text/javascript">
    document.body.className = document.body.className.replace('no-js','js');
    </script>

    Character-set / Server Permissions


    *Are you naming your templates using Japanese characters? Could you try using latin characters?

    *Are you using utf8?

    *What is the collation setting you are using (please look in your wp-config.php file)?

    *By move you to new IP, did that mean they moved you to a new server, or added an IP to your existing server? If they moved you , then what is the difference in server configuration, apache configuration, php config, sql config….

    Please add this line to the avia-options-page.js .. its just for testing, and this should allow you to save at any point on that page. do not use on your live site.

    Please add the code below to line 195 (empty line)

    hiddensave = 'true';

    If nothing works, please create a temp admin account for me and send to usjahm (at) gmail (dot) com.

    Thanks,

    Nick

    #106631

    Hi,Nick

    Thank you for your replying.

    Yes,I am hosted by FC2.

    I’ve checked all,and here is my page setting.

    <body class=”wp-admin wp-core-ui js choices_page_templates auto-fold admin-bar branch-3-5 version-3-5-1 admin-color-fresh locale-ja no-customize-support”>

    *I’m naming my templates using latin characters.

    *I’m using utf8.

    *Collation setting is here

    define(‘DB_COLLATE’, ”);

    *They moved me to a new server,but I couldn’t figure out what the differences on config are.

    I added the code to line 195,but nothing works.

    So I’ll send a mail to specified email address.

    Thanks,

    Takafumi

    #106632

    Hi,

    I looked at your site and its first time i’ve encountered something like this. Your source code had a lot of jquery missing, not theme jquerry but actual wordpress jquery.

    First thing that jumps at me is (yours)

    <script type='text/javascript'>
    /* <![CDATA[ */
    var avia_framework_globals = avia_framework_globals || {};
    avia_framework_globals.frameworkUrl = 'http://paprica.info/wordpress/wp-content/themes/choices3/framework/';
    avia_framework_globals.installedAt = 'http://paprica.info/wordpress/wp-content/themes/choices3/';
    avia_framework_globals.ajaxurl = 'http://paprica.info/wordpress/wp-admin/admin-ajax.php';
    /* ]]> */
    </script>

    vs Choice Theme same version that works

    <script type="text/javascript">
    /* <![CDATA[ */
    var avia_framework_globals = {
    frameworkUrl: 'http://zzz.dev/wp-content/themes/Choices/framework/',
    installedAt: 'http://zzz.dev/wp-content/themes/Choices/',
    ajaxurl: 'http://zzz.dev/wp-admin/admin-ajax.php'
    };
    /* ]]> */
    </script>

    I don’t quite understand why we are using the same version of wordpress and theme, but the code looks so drastically different. Investigating.

    Thanks,

    Nick

    #106633

    Hi,Nick

    Thank you for your quick support.

    I’ll wait for your investigating.

    Thanks,

    Takafumi

    #106634

    Hi,

    I am not sure there is that much for me to investigate. I set it up on a live server and my home localhost and it works in both places. The problem began when you switched ips/servers. So I think that is where the problem needs to be resolved. Ask them to switch you. If support cliams there is an error in the jquery file, please ask them to either point it out (no error is thrown for me on your site in firebug or google dev tools), or move you to a different server.

    Thanks,

    Nick

    #106635

    Hi,

    Please look on line 195-200 of /framework/php/class-superobject.php and compare them to this code. Is it the same?

    function set_javascript_framework_url()
    {
    echo "n <script type='text/javascript'>n /* <![CDATA[ */ n";
    echo "var avia_framework_globals = {n tframeworkUrl: '".AVIA_FW_URL."', n tinstalledAt: '".AVIA_BASE_URL."', n tajaxurl: '".apply_filters('avia_ajax_url_filter', admin_url( 'admin-ajax.php' ))."'n t}; n /* ]]> */ n ";
    echo "</script>n n ";
    }

    Thanks,

    Nick

    #106636

    Hi,

    Thank you,Nick.

    I looked the code,and here is mine on line 195-205.

    function set_javascript_framework_url()

    {

    echo “n <script type=’text/javascript’>n /* <![CDATA[ */ n";

    echo "var avia_framework_globals = avia_framework_globals || {};n";

    echo " avia_framework_globals.frameworkUrl = '".AVIA_FW_URL."';n";

    echo " avia_framework_globals.installedAt = '".AVIA_BASE_URL."';n";

    echo " avia_framework_globals.ajaxurl = '".apply_filters('avia_ajax_url_filter', admin_url( 'admin-ajax.php' ))."';n";

    echo "/* ]]> */ n”;

    echo “</script>n n “;

    }

    It looks different from yours.

    Thanks,

    Takafumi

    #106637

    Hi,

    The bad news is that the only thing this discrepancy did was uncover that my theme wasn’t using the last update. But even with the update I am still able to save and edit dynamic templates. Can you create a localhost on your personal computer at home and try installing it on it? It takes a few minutes to set up a XAMPP on a windows based system or on MAMP on iMac. You can download an auto installer here for free http://serverpress.com/downloads/ and just click a button and you will have a wordpress local development site at http://localhost.dev

    Thanks,

    Nick

    #106638

    Hi,

    I created a localhost,and installed the theme.

    Thanks,

    Takafumi

    #106639

    Hi,

    I tested a wordpress and the theme on localhost,using the same files on my FC2 server.

    It works just fine.

    I can save and add new element.

    Thanks,

    Takafumi

    #106640

    Hi,

    So please talk to your host, and show them that the problem lies with their server and not with the theme or with wordpress and if they refuse to fix their improperly configured Apache server, find a different host – there are only a few thousand to chose from :)

    If you look at the other thread you mentioned in your first post http://www.kriesi.at/support/topic/saving-didnt-work-on-template-builder#post-96721 … switching hosts fixed the problem.

    Thanks,

    Nick

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘saving and add new element didn't work on template builder’ is closed to new replies.