Can't add new content after upgrade - redirected to 404 error page
Can't add new content after upgrade - redirected to 404 error page
Greetings fellow CMSMSers!
I've been a CMSMS user for a few years and this is my first post. I'm not versed in PHP, but have found solutions to all my issues in the documentation and forums, until now. I tried searching the documentation and forum for a solution and practically have read every post containing "404 error" to no avail.
Last night, I upgraded to the latest CMSMS version 1.6.3 from a previous version 1.5.x (can't remember which 1.5 version) applying the full upgrade procedure. Everything apparently went smoothly and without issues until I tried to create a new content page from within the Admin interface. When I click on the "Add new content" link, the "Add New Content" form appears for a couple of seconds and then redirects to 404 error, whether the custom 404 error page is enable or not. Therefore, I can't access the new content form.
I'm not sure when was the last time I've added new content pages, so I'm not sure since which CMSMS version I've had this problem. Lately, I've been adding most of my website's new content using the News and Calendar modules. But now I need to add new content pages, thus discovering the problem. I have also performed some customizations to the source code of some modules to solve issues as per instructions posted in the forum and to change predefined labels, templates, etc.. Though I'm not a PHP or Smarty programmer, I've had no issues with these customizations. Also, I've never made any modifications to the admin source.
I am the only CMSMS user and admin. My operating system is Windows Vista 32-Bit with all patches, fixes and updates to date. This problem repeats in all browsers I have installed on my PC:
- Mozilla Firefox 3.0.13
- Google Chrome 2.0.172.39
- MS Internet Explorer 8.0.6001.18813
- Apple Safari 4.0.2 (530.19.1)
Here is info about my CMS and web server configuration:
----------------------------------------------
Cms Version: 1.6.3
Installed Modules:
* CMSMailer: 1.73.14
* ModuleManager: 1.3.1
* News: 2.10.2
* nuSOAP: 1.0.1
* Guestbook: 1.1.12
* PageBlocks: 0.1.5
* Captcha: 0.4
* Smileys: 0.2.0
* EditArea: 0.2.2
* CGExtensions: 1.16.2
* Calendar: 1.0
* SiteMapMadeSimple: 1.1.4
* FileManager: 1.0
* TemplateExternalizer: 1.2
* Comments: 1.9.2
* SystemInfo: 0.1.2
* MenuManager: 1.6.1
* FormBuilder: 0.5.11
* Search: 1.6.1
Config Information:
* php_memory_limit:
* process_whole_template: true
* max_upload_size: 10000000
* default_upload_permission: 664
* assume_mod_rewrite: true
* page_extension: .html
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.6
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* memory_limit: 90M
* max_execution_time: 60
* safe_mode: Off (False)
* session_save_path: /tmp (1777)
Server Information:
* Server Api: cgi-fcgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.67
----------------------------------------------
I will be grateful for any help you can provide me.
Thanks,
- Robert
---------------------------
[shadow=brown,left] My CMSMS Website:[/shadow] http://www.rlsguitar.com/
---------------------------
.:.
I've been a CMSMS user for a few years and this is my first post. I'm not versed in PHP, but have found solutions to all my issues in the documentation and forums, until now. I tried searching the documentation and forum for a solution and practically have read every post containing "404 error" to no avail.
Last night, I upgraded to the latest CMSMS version 1.6.3 from a previous version 1.5.x (can't remember which 1.5 version) applying the full upgrade procedure. Everything apparently went smoothly and without issues until I tried to create a new content page from within the Admin interface. When I click on the "Add new content" link, the "Add New Content" form appears for a couple of seconds and then redirects to 404 error, whether the custom 404 error page is enable or not. Therefore, I can't access the new content form.
I'm not sure when was the last time I've added new content pages, so I'm not sure since which CMSMS version I've had this problem. Lately, I've been adding most of my website's new content using the News and Calendar modules. But now I need to add new content pages, thus discovering the problem. I have also performed some customizations to the source code of some modules to solve issues as per instructions posted in the forum and to change predefined labels, templates, etc.. Though I'm not a PHP or Smarty programmer, I've had no issues with these customizations. Also, I've never made any modifications to the admin source.
I am the only CMSMS user and admin. My operating system is Windows Vista 32-Bit with all patches, fixes and updates to date. This problem repeats in all browsers I have installed on my PC:
- Mozilla Firefox 3.0.13
- Google Chrome 2.0.172.39
- MS Internet Explorer 8.0.6001.18813
- Apple Safari 4.0.2 (530.19.1)
Here is info about my CMS and web server configuration:
----------------------------------------------
Cms Version: 1.6.3
Installed Modules:
* CMSMailer: 1.73.14
* ModuleManager: 1.3.1
* News: 2.10.2
* nuSOAP: 1.0.1
* Guestbook: 1.1.12
* PageBlocks: 0.1.5
* Captcha: 0.4
* Smileys: 0.2.0
* EditArea: 0.2.2
* CGExtensions: 1.16.2
* Calendar: 1.0
* SiteMapMadeSimple: 1.1.4
* FileManager: 1.0
* TemplateExternalizer: 1.2
* Comments: 1.9.2
* SystemInfo: 0.1.2
* MenuManager: 1.6.1
* FormBuilder: 0.5.11
* Search: 1.6.1
Config Information:
* php_memory_limit:
* process_whole_template: true
* max_upload_size: 10000000
* default_upload_permission: 664
* assume_mod_rewrite: true
* page_extension: .html
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.6
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* memory_limit: 90M
* max_execution_time: 60
* safe_mode: Off (False)
* session_save_path: /tmp (1777)
Server Information:
* Server Api: cgi-fcgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.67
----------------------------------------------
I will be grateful for any help you can provide me.
Thanks,
- Robert
---------------------------
[shadow=brown,left] My CMSMS Website:[/shadow] http://www.rlsguitar.com/
---------------------------
.:.
Last edited by RLS on Sat Aug 08, 2009 3:31 am, edited 1 time in total.
Re: Can't add new content after upgrade - redirected to 404 error page
Hi,
You might try doing a "System Verification". That will tell you if there are any files missing/modified that you don't already know about. If you haven't already done so, you'll need to download the checksum file, from the Download page, that matches the CMSMS tarball that you installed: cmsmadesimple-VVVV-XXXX-checksum.dat (where VVVV is your version and XXXX is "base" or "full").
If you can't get to the "Site Admin » System Verification" page of the Admin console, then there is a standalone version of "System Verification" in the ./install directory named cmschecksum.php. Put cmschecksum.php in the root of your installation and visit it with a browser (e.g., http://www.rlsguitar.com/cmschecksum.php). When prompted, enter the local path of the checksum file that you downloaded earlier, then click "Check". In the results, if you see any missing files or checksum errors on files you didn't modify, then you might try uploading clean copies of those files. Otherwise, check your edits again for syntax errors and such.
Other things to try:
Fred
You might try doing a "System Verification". That will tell you if there are any files missing/modified that you don't already know about. If you haven't already done so, you'll need to download the checksum file, from the Download page, that matches the CMSMS tarball that you installed: cmsmadesimple-VVVV-XXXX-checksum.dat (where VVVV is your version and XXXX is "base" or "full").
If you can't get to the "Site Admin » System Verification" page of the Admin console, then there is a standalone version of "System Verification" in the ./install directory named cmschecksum.php. Put cmschecksum.php in the root of your installation and visit it with a browser (e.g., http://www.rlsguitar.com/cmschecksum.php). When prompted, enter the local path of the checksum file that you downloaded earlier, then click "Check". In the results, if you see any missing files or checksum errors on files you didn't modify, then you might try uploading clean copies of those files. Otherwise, check your edits again for syntax errors and such.
Other things to try:
- * check the web server error logs.
- * temporarily set $config['debug'] = true; in your installation's config.php and then try to add new content again. You may see helpful error messages that were hidden before. Note: you may also see some unhelpful error messages: I've noticed that sometimes enabling debugging can generate error messages all by itself. Werner Heisenberg would be proud.
- * check permissions on installation files and directories. Although, I don't know if this is an issue on Vista.
Fred
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
- Abraham Lincoln
Re: Can't add new content after upgrade - redirected to 404 error page
I don't see tiny in your installed modules, do you use edit area for content editing...
Re: Can't add new content after upgrade - redirected to 404 error page
Fred, thanks for the pointers. I did everything you recommend and everything checks out. Checksum verification only showed missing language files that I don't need (I think). No errors in the logs related to this issue nor PHP debug errors displayed at all. I triple checked the permissions on both server files (chmod) and my PC Vista files.fredp wrote: You might try doing a "System Verification"....
Other things to try:Hope this helps,
- * check the web server error logs.
- * temporarily set $config['debug'] = true; in your installation's config.php and then try to add new content again. You may see helpful error messages that were hidden before. Note: you may also see some unhelpful error messages: I've noticed that sometimes enabling debugging can generate error messages all by itself. Werner Heisenberg would be proud. ;)
- * check permissions on installation files and directories. Although, I don't know if this is an issue on Vista.
Fred
However, I do remember that this behavior started when I recently used the "Preview" tab of one of my pages just after upgrading. This feature never had really worked for me on any previous CMSMS versions so I wanted to test it. The behavior is the same as before: the preview lasts for a couple of seconds and then redirects to a 404 error. After using the preview feature is when the "Add new content" issue started.
I tried adding new content again just now and noticed the following in the address bar:
When the new page form appears, this is in the address bar:
Code: Select all
http://www.rlsguitar.com/admin/addcontent.php?sp_=c7d2e9dc
Code: Select all
http://www.rlsguitar.com/index.php?page=__CMS_PREVIEW_PAGE__
My next step will be to check my error page generation settings. My hosting provider is Dreamhost and they have built-in features for error pages. I'll post after I have checked this.
Dr. CSS, I sometimes use Edit Area, but I have it disabled most of the time because it is buggy for me. The highlighting most of the time garbles the code/text and makes it unreadable. I don't use Tiny or any of the WYSWYG editors because I prefer to write the HTML directly myself and I use many flash player object embeds for my music videos and other multimedia. It would be great if the syntax highlighting would work properly in Edit Area.Dr. CSS wrote: I don't see tiny in your installed modules, do you use edit area for content editing...
Thanks!
Last edited by RLS on Sat Aug 08, 2009 11:59 pm, edited 1 time in total.
Re: Can't add new content after upgrade - redirected to 404 error page
check all your site admin > global settings and page default settings and then user specific settings and check your user permissions...
Re: Can't add new content after upgrade - redirected to 404 error page
Dr. CSS, triple checked and can't find anything that may be the cause. Issue remains and it's frustrating...Dr. CSS wrote: check all your site admin > global settings and page default settings and then user specific settings and check your user permissions...
Thanks!
Re: Can't add new content after upgrade - redirected to 404 error page
I have exactly the same problem after upgrading to 1.6.4. This issue started as of 1.6.2.
Any suggestions.
Klendino
Any suggestions.
Klendino
Re: Can't add new content after upgrade - redirected to 404 error page
Hello,
is it THAT reproducible ? Something interesting in the http (error) logS ?
What is your System Info, your System Checksum, hosting context...?
Pierre M.
is it THAT reproducible ? Something interesting in the http (error) logS ?
What is your System Info, your System Checksum, hosting context...?
Pierre M.
Re: Can't add new content after upgrade - redirected to 404 error page
Hi Pierre
I have several sites running CMSMS. I only have this problem with sites that were installed as of 0.12. Which I upgraded regularly to the latest one.
On sites installed freshly from 1.6, this is not happening.
Even when re-uploading the full latest version, the error still persists.
System Information:
CMS Version 1.6.4
Current PHP Version (phpversion): 5.2.6
Server Database (server_db_type): MySQL (mysql)
Server Database Version (server_db_version): 5.0.51
As for the logs, no idea how to get them.
I ran a system checksum and got several errors on language files, which I don't use.
Hope this helps.
Klendino
I have several sites running CMSMS. I only have this problem with sites that were installed as of 0.12. Which I upgraded regularly to the latest one.
On sites installed freshly from 1.6, this is not happening.
Even when re-uploading the full latest version, the error still persists.
System Information:
CMS Version 1.6.4
Current PHP Version (phpversion): 5.2.6
Server Database (server_db_type): MySQL (mysql)
Server Database Version (server_db_version): 5.0.51
As for the logs, no idea how to get them.
I ran a system checksum and got several errors on language files, which I don't use.
Hope this helps.
Klendino
Re: Can't add new content after upgrade - redirected to 404 error page
Same happened here. I upgraded from 1.6 to 1.6.2 and I couldn't access the admin login page - kept getting a 404 error message.
I completely deleted my .htaccess page from root and was able to continue into the admin without trouble, so continued upgrading to 1.6.4 hoping it was just an unresolved bug. Then uploaded my .htaccess page again after I was up to 1.6.4, but got the 404 error message again after the complete upgrade.
Checked the error logs and found that it was giving me a 404 error for a file named 401.shtml To solve the problem, all I did was upload a blank file called 401.shtml to root and that fixed it - I can now access the admin again without the 404 error message.
So maybe give that a try.
Chris
I completely deleted my .htaccess page from root and was able to continue into the admin without trouble, so continued upgrading to 1.6.4 hoping it was just an unresolved bug. Then uploaded my .htaccess page again after I was up to 1.6.4, but got the 404 error message again after the complete upgrade.
Checked the error logs and found that it was giving me a 404 error for a file named 401.shtml To solve the problem, all I did was upload a blank file called 401.shtml to root and that fixed it - I can now access the admin again without the 404 error message.
So maybe give that a try.
Chris
Re: Can't add new content after upgrade - redirected to 404 error page
I can access the admin area without any problem.
Only adding new content gives me a 404 error. Editing an existing page doesn't give this error.
Checked the logs and even put CMSMS in debug mode, but didn't give me any clue on what's going on.
Cheers
Klendino
Only adding new content gives me a 404 error. Editing an existing page doesn't give this error.
Checked the logs and even put CMSMS in debug mode, but didn't give me any clue on what's going on.
Cheers
Klendino
Re: Can't add new content after upgrade - redirected to 404 error page
@Ctopher : I don't think "Same happened here" as you seem to be in an odd webserver level situation (rewriting, htaccess) not in a CMSms specific issue.
Pierre M.
klendino wrote: ...but didn't give me any clue on what's going on.
Unless reading the clue from the logS (this is why CMSms has requirements) we can't guess it. Talk with your hosting provider.klendino wrote: As for the logs, no idea how to get them.
Do you really talk about 0.12 ? Did your upgrade to 1.6.x from 0.12 directly ? You've upgraded from 1.5, haven't you ?klendino wrote: I only have this problem with sites that were installed as of 0.12. Which I upgraded regularly to the latest one.
Pierre M.
Re: Can't add new content after upgrade - redirected to 404 error page
You are right, it wasn't the same, just coincidence.
Re: Can't add new content after upgrade - redirected to 404 error page
I started of with CMSMS from 0.12 and upgraded regularly to the lastest one, i.e. step by step as soon a new release came out.
What I was saying was that I have 5 sites running CMSMS, all running on the same webserver. Only 2 of them have this problem as they were installed years ago with 0.12 and upgraded regularly to the latest release. I didn't have this problem with 1.5, it all started after the upgrade from 1.5 to 1.6 and experiencing this trouble since.
Klendino
What I was saying was that I have 5 sites running CMSMS, all running on the same webserver. Only 2 of them have this problem as they were installed years ago with 0.12 and upgraded regularly to the latest release. I didn't have this problem with 1.5, it all started after the upgrade from 1.5 to 1.6 and experiencing this trouble since.
Klendino
Re: Can't add new content after upgrade - redirected to 404 error page
The solution should be in the logS and in the difference between the working installs and the non working installs.
Pierre M.
Pierre M.