Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #865338

    smoothjapan
    Participant

    Hi there,

    I am currently using the “Under Construction” extension for my page as I’m still working on it. It works perfectly well on Desktop but there is nothing an error when I look on mobile website without being logged in.

    Error comes up as this:

    Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in /srv/www/data/users/b/c/bcf6b318/public/wp-content/plugins/sitepress-multilingual-cms/inc/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php on line 47 Warning: include(https://smoothjapan.com/): failed to open stream: no suitable wrapper could be found in /srv/www/data/users/b/c/bcf6b318/public/wp-content/plugins/sitepress-multilingual-cms/inc/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php on line 47 Warning: include(): Failed opening ‘https://smoothjapan.com/’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /srv/www/data/users/b/c/bcf6b318/public/wp-content/plugins/sitepress-multilingual-cms/inc/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php on line 47

    #865394

    John Ezra
    Member

    Hi there,

    Thanks for writing in! I don’t think it’s just your mobile as we get the same error on desktop on our end. Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #865450

    smoothjapan
    Participant
    This reply has been marked as private.
    #865661

    Paul R
    Moderator

    Hi,

    Thank you for providing your login credentials.

    I have temporarily deactivated wpml plugin, it’s the one that is causing the issue.

    Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    #865686

    smoothjapan
    Participant

    I guessed as much. If it is only the Under Construction part, I do not mind. I’ve contacted WPML developers about it.

    Thanks for looking into it.

    #865849

    Christopher
    Moderator

    You’re welcome.

    #870672

    smoothjapan
    Participant

    I’ve been in touch with the guys from WPML and they tell me this:

    Hello Jonas,

    On the WPML > Languages > Language URL format, as root url, you are using your site’s domain. You must use the path of the html/php file that is on your server. E.g.:

    1
    /home/your-user/site/file.php
    You can see more in our documentation: https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/

    That’s to fix the problem just replace the URL of your site the “HTML file” ( WPML > Languages > Language URL format ) and add the “path: absolute or relative to the WordPress installation folder”

    Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

    Thank you.

    I don’t think an HTML redirect is any good so I’ve been trying to make a PHP template in X-Theme, in my child theme/framework/views/integrity which is the active stack.

    I’ve named the file ‘template-redirect.php’
    and it contains:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/TEMPLATE-REDIRECT.PHP (Redirect | Header)
    // -----------------------------------------------------------------------------
    // WPML REDIRECT.
    // =============================================================================
    
    ?>
    <?php x_get_view( 'global', '_header' ); ?>
    
    <?php
    	wp_redirect( home_url() );
    	exit;
    ?>
    

    Sadly, it won’t even appear in the selection of templates when creating a new page. How to fix this?

    #870675

    smoothjapan
    Participant

    Please feel free to FTP in with the data above, if necessary.

    #870690

    smoothjapan
    Participant

    This is really aggravating. I’ve tried to create a root page just to see if it would work and I called it ‘home’ and renamed the old landing page into “HomeOLD”, then WPML warned me that there is no translation, so I edited the page to add a translation, now the “Home” root page is simply gone. It’s no longer in the list of pages.
    However, it still IS inside the ‘Settings/Reading -> Static Post” list.

    What’s going on?
    What’s more, I can’t edit the frontpage with Cornerstone no matter which page I set as frontpage.

    I bought this after checking that at least WMPL would be compatible but it seems that the latest update broke something.

    #870692

    smoothjapan
    Participant

    Please refer also to this thread, because the two issues are related.
    https://community.theme.co/forums/topic/edit-with-cornerstone-for-front-page-directs-to-blog/

    #871023

    Rue Nel
    Moderator

    Hello There,

    So that your template-redirect.php will work, you also need to create another file which will be in the child theme’s directory. With your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // TEMPLATE NAME: Template - Redirect
    // -----------------------------------------------------------------------------
    // A template redirect page template.
    //
    // =============================================================================
    
    ?>
    
    <?php x_get_view( x_get_stack(), 'template', 'redirect' ); ?>

    3] Save the file named as template-redirect.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/

    Please let us know if this works out for you.

    #872762

    smoothjapan
    Participant

    Thank you! That did the job.
    I may have skipped a line, but I don’t think this was in the manual.
    I’ll figure out the exact content of the forward with the WPML guys.

    #873546

    Rue Nel
    Moderator

    You’re welcome!
    We’re glad we were able to help you out.