Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: userMr on February 09, 2020, 11:27:21 AM

Title: Error when importing WordPress templates
Post by: userMr on February 09, 2020, 11:27:21 AM
hello
I installed WordPress on server, When importing demo template it gives this error:

Quote
Oops.. there were 4 errors during the import!
[ErrType: xml-wp-content]
Sorry, there has been an error.This does not appear to be a WXR file, missing/invalid WXR version number
[ErrType: typolab]
[ErrType: widgets] Import data could not be read. Please try a different file.
[ErrType: revslider]
It is often related to bad hosting environment that have limited hosting resources and make demo content import to fail. Please review if your server meets suggested requirements, otherwise contact our support.

What should I do
Title: Re: Error when importing WordPress templates
Post by: userMr on February 09, 2020, 07:01:14 PM
who can help me?
Title: Re: Error when importing WordPress templates
Post by: rcschaff on February 09, 2020, 07:58:33 PM
How are you installing?  Softaculous, cpwser panel, or through WordPress admin panel?
Title: Re: Error when importing WordPress templates
Post by: userMr on February 10, 2020, 01:40:59 PM
How are you installing?  Softaculous, cpwser panel, or through WordPress admin panel?

WordPress admin panel.
Title: Re: Error when importing WordPress templates
Post by: rcschaff on February 10, 2020, 02:03:31 PM
In that case, you may have to tweak PHP file upload settings.
Title: Re: Error when importing WordPress templates
Post by: userMr on February 10, 2020, 02:23:03 PM
In that case, you may have to tweak PHP file upload settings.

My PHP file upload settings:
memory_limit = 1024M
upload_max_filesize = 500M
post_max_size = 550M
max_execution_time = 300
display_errors = Off

but There is a new problem!

Now when uploading a file to CWP filemanager, it is stops on 1% and i cant upload it. (size: 148 MB)


Title: Re: Error when importing WordPress templates
Post by: rcschaff on February 10, 2020, 02:54:59 PM
A few notes. 
PHP should not be used to upload files larger than 20MB.
Your selected server has a timeout setting for connections.  You may be hitting that timeout, thus upload stops.
Upload folder and tmp folders need appropriate permissions to upload anything.
Title: Re: Error when importing WordPress templates
Post by: ejsolutions on February 10, 2020, 04:06:05 PM
Coincidentally, I managed to upload a 128MB backup, via the root (crap) File Manager.
Check your /usr/local/php/php.ini
I do wish ConfigServer Explorer was available at root level. No as good as the cPanel one but an improvement on the CWP one, IMHumbleO.

(I used File Manager purely out of convenience and likely the upload would've been quicker with scp  ;) )