Can't add/edit content after 1.8.1 upgrade
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Can't add/edit content after 1.8.1 upgrade
I just updated from 1.6.4 to 1.8.1 and I can no longer add or edit any of the content on my website. My changes show up in the database admin log and the content_props table (metadata), but not in the content table itself. Any idea why this would be?
Cms Version: 1.8.1
Config Information:
* php_memory_limit: 64M
* process_whole_template: false
* output_compression: false
* max_upload_size: 32000000
* default_upload_permission: 664
* url_rewriting: none
* page_extension:
* query_var: page
* image_manipulation_prog: GD
* auto_alias_content: true
* locale:
* default_encoding: utf-8
* admin_encoding: utf-8
* set_names: true
Php Information:
* phpversion: 5.2.10
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* memory_limit: 64M
* max_execution_time: 30
* output_buffering: 4096
* safe_mode: Off (False)
* file_uploads: On (True)
* post_max_size: 8M
* upload_max_filesize: 10M
* session_save_path: /var/lib/php/session (0770)
* session_use_cookies: On (True)
* xml_function: On (True)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.77
Cms Version: 1.8.1
Config Information:
* php_memory_limit: 64M
* process_whole_template: false
* output_compression: false
* max_upload_size: 32000000
* default_upload_permission: 664
* url_rewriting: none
* page_extension:
* query_var: page
* image_manipulation_prog: GD
* auto_alias_content: true
* locale:
* default_encoding: utf-8
* admin_encoding: utf-8
* set_names: true
Php Information:
* phpversion: 5.2.10
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* memory_limit: 64M
* max_execution_time: 30
* output_buffering: 4096
* safe_mode: Off (False)
* file_uploads: On (True)
* post_max_size: 8M
* upload_max_filesize: 10M
* session_save_path: /var/lib/php/session (0770)
* session_use_cookies: On (True)
* xml_function: On (True)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.77
Re: Can't add/edit content after 1.8.1 upgrade
Check if you have the default {content} in your template.
Please post your template here for a check.
Ronny
Please post your template here for a check.
Ronny
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Re: Can't add/edit content after 1.8.1 upgrade
Yes, I do have the default {content} in my template. Not the prettiest code, forgive me.
Code: Select all
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>{sitename} • {title}</title>
{metadata}
{stylesheet}
<!--[if IE 7]>
<style type="text/css">{literal}
.partner_box ul li {clear:both;}
{/literal}
</style>
<![endif]-->
<__script__ src="uploads/js/jquery-1.3.2.min.js" language="javascript" type="text/javascript">
</__script>
<link type="text/css" href="uploads/js/jquery-ui-1.7.2.custom.css" rel="stylesheet"></link>
<__script__ type="text/javascript" src="uploads/js/jquery-ui-1.7.2.custom.min.js"></__script>
{literal}
<__script__ type="text/javascript">
jQuery().ready(function(){
// simple accordion
jQuery('.basic').accordion({
autoHeight: false,
alwaysOpen: false,
active: false,
collapsible: true,
header: 'h6'
});
});
</__script>
{/literal}
</head>
</__body class="inner_bg">
<!--outer layout starts-->
<div id="outer_layout_inner">
<!--header starts-->
<div id="header">
<div class="header_inner">
<div class="logo"><a href="{root_url}"><img src="uploads/images/logo.gif" alt="" /></a>
</div>
</div>
</div>
<!--header ends-->
<!--menu starts-->
<div id="menu"><div class="inner">
{menu template="mainmenu" excludeprefix = "privacy-policy,terms-conditions,site-map" number_of_levels="1"}
</div>
</div>
<!--menu ends-->
<!--layout starts-->
<div class="partner_outer"><div class="partner_inner">
<!--submenu starts-->
<div id="submenu">
{menu template="mainmenu" number_of_levels="1" start_level="2" }
</div>
<!--submenu ends-->
<div class="thin info_partner">
<span class="clear"></span>
</div></div></div><div class="partner_outer_container">
<div id="layout">
<!--main starts-->
<div id="body_container">
{if $smarty.get.cntnt01returnid != 64}
<h3 class="our">{title}</h3>
{/if}
<div class="partner_box">
{content}
</div>
</div>
<!--main ends-->
</div>
</div>
<!--layout ends-->
<!--footer starts-->
{global_content name='footer'}
<!--footer ends-->
</div>
<!--outer layout ends-->
<__body>
</__html>
Re: Can't add/edit content after 1.8.1 upgrade
How did you upgrade?
Did you just copy the diff files of 1.8.1?
This won't work at all.
You need first to upgrade to 1.8 (do the "yourDomain/install/upgrade.php" stuff) and then upgrade to 1.8.1 (without upgrade.php)
So upload the full package of CMSms 1.8 again, do the upgrade and then just upload the files of CMSms 1.8.1.
Did you just copy the diff files of 1.8.1?
This won't work at all.
You need first to upgrade to 1.8 (do the "yourDomain/install/upgrade.php" stuff) and then upgrade to 1.8.1 (without upgrade.php)
So upload the full package of CMSms 1.8 again, do the upgrade and then just upload the files of CMSms 1.8.1.
Last edited by NaN on Thu Jul 15, 2010 8:21 pm, edited 1 time in total.
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Re: Can't add/edit content after 1.8.1 upgrade
I tried this and the problems did not go away.
Re: Can't add/edit content after 1.8.1 upgrade
Turn on debug mode.
Open your config.php and change
to
try to add/edit pages and see if there are errors listed in the debug output.
If not turn on error reporting of your server..
Or just place this on top of your config.php:
Tyr to add/edit pages and see if there are any messages.
Open your config.php and change
Code: Select all
$config['debug'] = false;
Code: Select all
$config['debug'] = true;
If not turn on error reporting of your server..
Or just place this on top of your config.php:
Code: Select all
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Re: Can't add/edit content after 1.8.1 upgrade
Here are the errors that showed up from this (had to remove some info and replace it with an ellipses):
[Fri Jul 16 14:50:07 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 14:50:07 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 14:50:11 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php
[Fri Jul 16 14:50:11 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php
[Fri Jul 16 15:02:08 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 15:02:08 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 15:02:39 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php
[Fri Jul 16 15:02:39 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php
[Fri Jul 16 14:50:07 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 14:50:07 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 14:50:11 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php
[Fri Jul 16 14:50:11 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php
[Fri Jul 16 15:02:08 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 15:02:08 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
[Fri Jul 16 15:02:39 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php
[Fri Jul 16 15:02:39 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: cntnt01returnid in /home/wwwint/www/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 39, referer: http://.../admin/addcontent.php
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Re: Can't add/edit content after 1.8.1 upgrade
It is still not working. Any advice based on the errors?
Re: Can't add/edit content after 1.8.1 upgrade
first clean up the cache, if it doesn't help, try to change this in your template
from
to
maybe it helps - and if not, post the errors when changed the template
from
Code: Select all
{if $smarty.get.cntnt01returnid != 64}
<h3 class="our">{title}</h3>
{/if}
Code: Select all
<h3 class="our">{title}</h3>
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Re: Can't add/edit content after 1.8.1 upgrade
I cleared the cache and made those template changes. After I did that, I noticed a strange thing happening. I changed the content on a page and hit submit. The page editor saved the changes, but when I went outside CMS Made Simple and viewed the page, the changes did not show up.
Then, I went back to the listing of all pages and went to the "Reorder Pages" option. I changed the order of two pages (not the one I was trying to edit) and clicked submit. When I went to view the website after this, the order of pages had successfully changed AND the changes I had previously made in the page editor took effect.
I do not know if this just started happening or had been happening before because I had never tried this.
However, I still cannot add pages or activate/deactivate existing pages.
Here is my current template. I haven't tried it with debug enabled yet, as I have to wait for a colleague for this. Are there any suggestions based on this information, or should I just try with debug enabled and post errors?
Then, I went back to the listing of all pages and went to the "Reorder Pages" option. I changed the order of two pages (not the one I was trying to edit) and clicked submit. When I went to view the website after this, the order of pages had successfully changed AND the changes I had previously made in the page editor took effect.
I do not know if this just started happening or had been happening before because I had never tried this.
However, I still cannot add pages or activate/deactivate existing pages.
Here is my current template. I haven't tried it with debug enabled yet, as I have to wait for a colleague for this. Are there any suggestions based on this information, or should I just try with debug enabled and post errors?
Code: Select all
{process_pagedata}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>{sitename} • {title}</title>
{metadata}
{stylesheet}
</head>
</__body class="inner_bg">
<!--outer layout starts-->
<div id="outer_layout_inner">
<!--header starts-->
<div id="header">
<div class="header_inner">
<div class="logo"><a href="{root_url}"><img src="uploads/images/logo.gif" alt="" /></a></div>
<!--{global_content name='actions'}-->
</div>
</div>
<!--header ends-->
<!--menu starts-->
<div id="menu"><div class="inner">
{menu template="mainmenu" excludeprefix = "privacy-policy,terms-conditions,site-map" number_of_levels="1"}
</div>
</div>
<!--menu ends-->
<!--layout starts-->
<div class="partner_outer_light"><div class="partner_inner">
<div class="info_partner">
{content block="top"}<span class="clear"></span>
</div></div></div><div class="partner_outer_container">
<div id="layout">
<!--main starts-->
<div id="body_container">
<h3 class="our">{title}</h3>
<div class="partner_box">
{content}
</div>
</div>
<!--main ends-->
</div>
</div>
<!--layout ends-->
<!--footer starts-->
{global_content name='footer'}
<!--footer ends-->
</div>
<!--outer layout ends-->
<__body>
</__html>
Re: Can't add/edit content after 1.8.1 upgrade
If you clear cache it schould work, that you see the edited content.
Posting error mesaages would be good again.
btw. how did you do it with the https? maybe there's also something wrong and someone with more knowledge about it could help you
Posting error mesaages would be good again.
btw. how did you do it with the https? maybe there's also something wrong and someone with more knowledge about it could help you
-
- New Member
- Posts: 7
- Joined: Thu Jul 15, 2010 6:09 pm
Re: Can't add/edit content after 1.8.1 upgrade
I'm confused about what you are asking. How did I do what with the https?
Re: Can't add/edit content after 1.8.1 upgrade
Some more of this, so please print the "new" error log with the changed template nowkfbradford wrote: Here are the errors that showed up from this (had to remove some info and replace it with an ellipses):
[Fri Jul 16 14:50:07 2010] [error] [client 10.7.200.166] PHP Notice: Undefined index: HTTPS in /home/wwwint/www/lib/content.functions.php(976) : eval()'d code on line 2, referer: http://.../admin/addcontent.php?sp_=ca9d02e2
.....
Re: Can't add/edit content after 1.8.1 upgrade
Please read one of these topics first:
http://forum.cmsmadesimple.org/index.ph ... 656.0.html
http://forum.cmsmadesimple.org/index.ph ... 935.0.html
http://forum.cmsmadesimple.org/index.ph ... 268.0.html
Maybe there is the solution for you.
If not ... did you rename the admin dir in the older version?
You need to rename it to "admin" again before upgrading.
http://forum.cmsmadesimple.org/index.ph ... 656.0.html
http://forum.cmsmadesimple.org/index.ph ... 935.0.html
http://forum.cmsmadesimple.org/index.ph ... 268.0.html
Maybe there is the solution for you.
If not ... did you rename the admin dir in the older version?
You need to rename it to "admin" again before upgrading.
Last edited by NaN on Sat Aug 07, 2010 11:52 am, edited 1 time in total.