Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Can't create a new section, edit existing sections
I upgraded to Txp 4.8.3 this evening. Diagnostics tab says all checks passed.
I tried to create a new section, but got this error:
The section was not saved due to an error. Please try again.
I get the same error when trying to edit existing sections.
I can create new articles and pages.
Where would I start to troubleshoot this?
—-
Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com
Offline
Re: Can't create a new section, edit existing sections
Maybe, try this: open the browser developer tools, and make sure the no caching option is selected. in Safari it is off by default in that case, for Firefox you have to turn it on, if memory serves (on the network panel is a ‘disable cache’ checkbox).
Also, after leaving the site, or the TXP back end, and coming back, it might be that your edits are actually recorded.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Can't create a new section, edit existing sections
Are there any plugins that might be getting in the way?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Can't create a new section, edit existing sections
I wonder if this might be our old friend mod_security (or similar web application firewall)…
Offline
Re: Can't create a new section, edit existing sections
x
gaekwad wrote #326739:
I wonder if this might be our old friend mod_security (or similar web application firewall)…
If this is the case, you can check by temporarily adding
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
to your htaccess file. Note that it is not recommended as a permanent directive it may leave your site vulnerable. If the error disappears, you should get in touch with your host.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Can't create a new section, edit existing sections
mistersugar wrote #326726:
I upgraded to Txp 4.8.3 this evening.
I just found this – have a skim read of that thread, there might be an upgrade script that hasn’t fired off correctly.
Offline
Re: Can't create a new section, edit existing sections
gaekwad wrote #326753:
there might be an upgrade script that hasn’t fired off correctly.
I suspect this is the issue. For the first time ever, I don’t recall seeing a the update window with language selection. Unless the update process has changed in the last few releases and I’ve been asleep at the wheel, I think I need to backtrack and upload afresh.
Will report back tomorrow.
And thanks, as always!
—-
Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com
Offline
Re: Can't create a new section, edit existing sections
mistersugar wrote #326764:
For the first time ever, I don’t recall seeing a the update window with language selection.
It’s not you: that no longer happens, since languages are all bundled locally with each release, so there’s no need to update the strings manually any more :)
When you log back in after replacing the files, what you should see is a flashing green notification message welcoming you to the new version. Depending on your browser settings, you may also get a JavaScript version warning asking you to refresh your cache. A force refresh usually does the trick.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Can't create a new section, edit existing sections
Bloke wrote #326769:
When you log back in after replacing the files, what you should see is a flashing green notification message welcoming you to the new version.
I uploaded all Txp files again, and once again I did not see the green notification. So the update script is not working? Still getting the red warning that new section can’t be saved. Diagnostics panel says all checks passed though. I’ll search the forum later today to troubleshoot this.
—-
Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com
Offline
Re: Can't create a new section, edit existing sections
mistersugar wrote #326884:
I uploaded all Txp files again, and once again I did not see the green notification.
The notification is only triggered when the files are newer AND your version string in the txp_prefs table is different from (older than) the version in the new files. If you’ve already run through the upgrade but some of the files weren’t present then the version string might already have been modified.
That’s one way of ‘faking’ an upgrade if something has gone a bit sideways (although it can create a bunch of warnings for things that have already been applied, it’s usually safe to do). You can go into your database and set the version value back to an earlier version to re-run the script from that point when you next log in.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Can't create a new section, edit existing sections
Two more pieces of info:
1. I realize that I upgraded Txp from an earlier dev version of 4.8 (I’ll find the forum post about when you helped me get MarsEdit working with rpc/xml) straight to 4.8.3. Could that be part of the problem?
2. And now I see that my other Txp site, mistersugar.com, is on an older version of Txp and now throwing an error, so that suggests something changed at the server level, maybe with PHP?
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/azuiker/apps/mistersugar/textpattern/lib/constants.php on line 136
Last edited by mistersugar (2020-11-19 02:21:31)
—-
Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com
Offline
Re: Can't create a new section, edit existing sections
mistersugar wrote #326933:
And now I see that my other Txp site, mistersugar.com, is on an older version of Txp and now throwing an error, so that suggests something changed at the server level, maybe with PHP?
Can you post your diagnostics?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Can't create a new section, edit existing sections
mistersugar wrote #326933:
2. And now I see that my other Txp site, mistersugar.com, is on an older version of Txp and now throwing an error, so that suggests something changed at the server level, maybe with PHP?
Does this thread help for your error there ?
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Can't create a new section, edit existing sections
mistersugar wrote #326933:
2. And now I see that my other Txp site, mistersugar.com, is on an older version of Txp and now throwing an error, so that suggests something changed at the server level, maybe with PHP?
My gut feeling here says it’s PHP 7.4, switching server PHP to 7.3 may resolve it if you can’t update Textpattern just now. Textpattern 4.7 runs just fine on PHP 7.3.
Offline
Re: Can't create a new section, edit existing sections
Apologies for the long silence. I started a new job in November and only with the holiday lull have I gotten time to focus on my own stuff.
So, I upgraded to 4.8.4 but am still having troubles with editing and creating sections. I get the red error at the bottom of the screen.
I did notice that my default theme was still showing a 4.7.0 version. I suspect that would have been tied to Txp 4.7.0, right? I duplicated the theme and renamed it and assigned it to my active sections, but that hasn’t seemed to make any difference.
Here is my Diagnostics info:
Textpattern version: 4.8.4 (eeea8e11405a89e9e6ceb3fa3d0f2001)
Last update: 2020-12-27 02:44:50/2020-12-27 02:43:48
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: title_only
Production status: live
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 7.4.13
GD Graphics Library: 2.3.0; Supported formats: GIF, JPEG, PNG, WebP.
Server timezone: UTC
Server local time: 2020-12-27 20:49:01
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): America/New_York (-18000)
MySQL: 5.5.5-10.3.25-MariaDB (MariaDB Server)
Database server time: 2020-12-27 20:49:01
Database server time offset: 1 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: en_US.UTF-8
Site / Admin language: en-us / en-us
Web server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.10.0-1127.13.1.el7.x86_64
Admin-side theme: hive 4.8.4
htaccess file contents:
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html
<IfModule mod_rewrite.c>
RewriteEngine On
# Enable the `FollowSymLinks` option below if it isn't already.
#Options +FollowSymlinks
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
# For additional Apache-compatible web server configuration settings to enhance
# site performance and security, we recommend:
# https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess
# END Textpattern
------------------------
Suggestions?
—-
Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com
Offline