CMS Limitations
Autor: Rahul K.
Besucht 1832,
Followers 1,
Geteilt 0
I recently developed a site using Website X5 for a property dealer. He needs to constantly add content. However, after a certain stage, the content fails to save in CMS with a message that says content is too large. Is there a way to overcome this? If I choose to add more dynamic content sections, is there a way to avoid the content added by client being wiped out. Last time when I updated my client's site, the content that he had added to the live site were replaced by the content I had added to my project files.
Gepostet am
Autor
Here is an attachment.
Rahul,
Are you using detabase or save to file option?
I will suggest you to use database, also if you want to update the page has "Dynamic Content" widget, do not touch the widget (replacing or moving it) also do not add any content inside it from x5 program, it will change everything, you need to update it online! otherwise as you see it will replace the old content that been added online.
you would be able to update the page inside your x5 program like adding other content to top of the page or below the cms widget, but not inside the widget!
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.nuluhost.com (6 months free Web Host for x5 users, promo code: usx56m)
http://www.wdesigners.us
http://www.usx5.com (Templates and support for x5)
Autor
Hi,thanks for that. Right now it is being saved to file. Is there away in which I can change it to database without the client losing his data online? Also the project I have on my machine has data that I've added for testing and it is saved that way. How can it be undone?
I think the safe way to do that is to make a copy from the content, change the saving system, go online and add the back to the cms part. I dont think we can change the format of php saved file to sql, it just a different format.
if I was going to that, I would log in to the cms part, make a copy of the content and save them in a wordpad or word document, then I would change everything (1. create a database, 2.add the database to your x5 program, 3.change the saving system, 4 upload the website) if it happened to show everything, AWESOME, if not, log in with the cms account and add the old content back again.
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.nuluhost.com (6 months free Web Host for x5 users, promo code: usx56m)
http://www.wdesigners.us
http://www.usx5.com (Templates and support for x5)
Autor
I tried changing the saving option to database. Now I'm facing a whole new issue! The website behaves weirdly if I add image. It works fine for text. If I add an image from local machine in the editor and click save, it shows me some HTML code and then if I click on it, it simply disappears. Even when I logout from the CMS and view as a regular user, I see a broken image link.
Autor
Another supporting image.
Autor
It seems that certain/all PNG files are not supported for images. Also, despite using the save to database option, the issue still continues where if large data is being submitted via the CMS editor, it gives that same error as mentioned in the initial attachment provided at the beginning of this post.
lets try to resolve the problems one by one.
now you have your database setup. if you update your client website, does the old content that your client added goes away again?
------------------------------------------------------------
Good Luck
http://www.usx5host.com (3 months free Web Host for x5 users, promo code: usx53m)
http://www.usx5.com (Templates and support for x5)
http://www.wdesigners.us
Autor
Hi Anthony, no the old content does not go away. So now that issue has been resolved. Thanks a lot for that. :)
Now, the original issue is still to be fixed for which this post was created - "Requested Entity Too Large". I google this error and based on some suggestions I even checked the upload file size limit for my web server and it was 32M which should be more than sufficient i assume. But when my content for CMS exceeds even 1mb, it gives this error.
Autor
Here is the attachment again.
Autor
Also, moving to databse has given rise to a new problem where the images cannot be added to the CMS (I think there is an issue with the conversion to base64 for images). Earlier these images were simply being copied to web server and, hence, could be added easily. But saving them to database is causing an issue.
I am attaching a screenshot to show how the CMS section appears even after I have clicked on the save button after editing the Dynamic Object.
Rahul, I think what you are facing is PHP memory limit, normaly there are being set in 128 inside the server, you can increase that (not too much). if you do not have access to php.ini file inside your server, the create a .htaccess file, if you already have that in the root (i.e. Public_html folder), then open the file with normal editor, the add this to your .htaccess
php_value memory_limit 1024M;
see if that fixes your problem.
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.usx5host.com (3 months free Web Host for x5 users, promo code: usx53m)
http://www.usx5.com (Templates and support for x5)
http://www.wdesigners.us
Autor
That did not help. My page size may hardly be about 2mb. Why would i need to even change the present configuration?
size of your file is different that processing memory in database!
if yours is 32 (which is way low, you can not even install nice lookin wordpress template without increasing it), change it to 128M.
your php page inside x5 does not have limit, your php server has limit!
which way did you choose? php.ini or htaccess?
------------------------------------------------------------
Good Luck
http://www.usx5host.com (3 months free Web Host for x5 users, promo code: usx53m)
http://www.usx5.com (Templates and support for x5)
http://www.wdesigners.us
Autor
I chose php.ini. The file had to be created in public_html folder (according to the instructions from the support team at GoDaddy). However, it did not make any difference. Then I created .htaccess in the same folder after removing php.ini. But after that, the website itself stopped loadidng and gave "500 internal server error".
Note that the hosting package that I have chosen is shared hosting and has 512 RAM.
Autor
Also, now I tried creating a .user.ini file with the content "memory_limit = 256M". Now, if check the phpinfo for my website, it shows local value as 256M and master value as 64M. This means that the value has been modified to 256M but I still get the "Request Entity Too Large" error.
Autor
It does allow me to upload smaller sized files though. But if upload a larger file or multiple files that add up to a large size (about 1 Mb or more), then it gives this issue.
Hello Rahul,
From the message you receive when you add a bigger file it seems the max allowed size is only 1mb in PHP and you need to contact the hosting provider to ask how this can be increased.
You will need to increase the upload limit in php and not the memory limit since this has no influence on the upload.
Many thanks!