Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-10-31 19:25:55

hurty
Member
Registered: 2004-07-17
Posts: 28

Can't edit "publish date" for links

When I attempt to set the date for a link the date entered is never retained, instead the current date time is always saved.

I have tried with and without the “set timestamp to now” checkbox selected. When I look at a link in the admin interface, the publish date/time is indicated in the list of links, but when I click into an individual link to edit it, the date/time fields are set to the placeholder values: yyyy / mm / dd hh:mm:ss (both instances — publish date and publish time, as well as the “Date” fields at the bottom of the edit pane. Updating the date / time in any of these fields does not update the database to the selected values, but whenever I save edits to the link, it updates the date to the current time.

Offline

#2 2024-11-01 06:09:35

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: Can't edit "publish date" for links

Strange. Other panels with date and time fields do not have that problem, such as Write panel, Edit Files, Images…?

When you change a date or time and save the edit, do you see a green success message (at the bottom of the window in the default theme)?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2024-11-01 21:12:48

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Can't edit "publish date" for links

I checked this on both textpattern demo versions and couldn’t reproduce what you describe. Both the current stable version (4.8.8) and the current beta (4.9) allow you to alter the link date to a date in the past or future. Similarly editing other link data and saving doesn’t update the link.

Some wild guesses / loose ideas:

  • Is your site perhaps updated from an earlier version pre 4.8.0 version of textpattern. Possibly there are no recorded dates for your links (hence the placeholder values?), and the first time you save them, they are given a proper date and time. Are the dates not editable thereafter?
  • Could your admin area be displaying cached values from the browser rather than the updated values. If so, there’s a plugin to try and mitigate that. If you have direct access to the database, you can check if the values are actually being changed in the DB but not showing on the panel.
  • If none of these, do you have any other plugins active that might be negatively interacting with the link saving process?

TXP Builders – finely-crafted code, design and txp

Offline

#4 2024-11-01 22:36:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

Re: Can't edit "publish date" for links

Strange indeed. Another thing to check in addition to the above is the browser inspector Console/Network panels. Look for any errors or warnings that are triggered when you save the page. It may be that your server is rejecting the content for whatever reason and returning a status code that we’re not handling well.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#5 2024-11-16 22:21:27

hurty
Member
Registered: 2004-07-17
Posts: 28

Re: Can't edit "publish date" for links

I’m an idiot. I had added a plugin several years ago that gave me the ability to edit dates for links. (before it was a feature that was supported natively in Textpattern 4.8.0). Of course I completely forgot that I had done that and since I don’t visit the links page very often (the client who I built the site for was the only person adding/editing links) I never noticed that there were problems with the link date/time fields. Thanks for the suggestions above, Bloke, Jakob, and phiw13.

Disabling the jra_link_admin_date plugin solved the problem.

Offline

Board footer

Powered by FluxBB