Okay
  Public Ticket #2719591
cannot import homepage
Closed

Comments

  • Jorge Briceno started the conversation

    I am building a new ecommerce on Magento using the Molla template. it is installed but when I try to import a home page using the Front End Builder > Import & Export Option I get the error: 

    A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.

    Can you advise on possible causes and suggested workaround?

    Thanks!

    JB

  • [deleted] replied

    Dear Jorge Briceno, 

    Thanks for your choosing our theme. 

    Could you please give us your site info ( admin url, admin account and ftp/ssh access detail ) ? So we can specify whether or not your issue is a theme bug. If it is, we may fix it for you. We will update you as soon as possible.

    Moreover, could you show me the description in detail through pictures or video? We will get your issue clearly.

    Thank you so much and have a nice day. 

  •  6
    enio san replied

    Hi Jorge Briceno,

    Were you able to fix this issue?... I am facing the same problem here as well. Apparently the .XML file type is not welcome on Magento.
    If you found a solution, I would appreciate it if you could share it here.

    Thanks !

  • [deleted] replied

    Hi enio san, 

    Please give us your site info ( admin url, admin account and ftp/ssh access detail ) ? So we can specify what your issue is and check it for you soon. 

    Thank you a lot. 

  •  6
    enio san replied

    Hi there !

    Is there an email address to send this information to ?... I wouldn't like to share this access info here in a public post. 
    For your time and support, many thanks.
    Looking forward to hearing from you.

  • [deleted] replied

    Hi enio san, 

    Please don't worry about security in this ticket, I can make private for you to ensure your information. 

    Your comments that are shown in private tickets are safe perfectly. So please don’t worry that it can be visible to the public. 

    If you want, I can make it become a private ticket for you. 

    Please let me know and I will do it for you before you give us site info. 

    Thank you a lot and have a nice day. 

  • mustafa replied

    do you fix this issue still see it magento 2.4.1

  •  6
    enio san replied

    Hi Mustafa,

    As for my case, support team helped by fixing it and chancing one file and adding another UPLOADER. This change allowed uploading these xml files.

    Kind regards

  • mustafa replied

    can you share code/Mgs plugin in any link because support team take long time to response.

    and thanks you so much for your reply

  • mustafa replied

    still wait for support to response

  •  3
    MrGFF replied

    same :(

  •  6
    enio san replied

    Hi Mustafa,

    Not sure if I (as a user/buyer) am allowed to share any files here. But I can tell you a simple (temporary) work around... If you check your Magento 2.4.1 error log, you should see that the UPLODER.PHP file gives error on the line 343 (or so). Just "comment" that chunk of lines and you should be able to upload the XML file. After that, remember to restore those lines back to normal.

    The chunk should look like this :

    ::::

    protected function _validateFile()
        {
            if ($this->_fileExists === false) {
                return;
            }

            //is file extension allowed
            if (!$this->checkAllowedExtension($this->getFileExtension())) {
                throw new ValidationException(__('Disallowed file type.'));
            }
            //run validate callbacks
            foreach ($this->_validateCallbacks as $params) {
                if (is_object($params['object'])
                    && method_exists($params['object'], $params['method'])
                    && is_callable([$params['object'], $params['method']])
                ) {
                    $params['object']->{$params['method']}($this->_file['tmp_name']);
                }
            }
        }


    ::::



  • mustafa replied

    Thnx you so much new error now show. 

    Uncaught SyntaxError: Unexpected token E in JSON at position 0
        at JSON.parse (<anonymous>)
        at Function.jQuery.parseJSON (jquery.js:9017)
        at Function.jQuery.parseJSON (jquery-migrate.js:307)
        at Object.success ((index):354)
        at fire (jquery.js:3238)
        at Object.fireWith [as resolveWith] (jquery.js:3368)
        at done (jquery.js:9846)
        at XMLHttpRequest.callback (jquery.js:10317)


  • mustafa replied

    thanks alot for your help friend

  • mustafa replied

    i have fix it by comment check funcstion only 

            //is file extension allowed
          //  if (!$this->checkAllowedExtension($this->getFileExtension())) {
            //    throw new ValidationException(__('Disallowed file type.'));
    //}