Textpattern CMS support forum

You are not logged in. Register | Login | Help

#101 2016-06-20 08:41:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,629
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

gomedia wrote #299852:

Dragging a folder on top of another of the same name in Mac Finder replaces the destination folder, i.e. anything not in the new folder disappears.

Sure, OSX is an anomaly here, but that’d only really affect MAMP-style installations. I doubt very few run OSX on their web host, so FTPing the files up will do what most people expect: merge.

I’m surprised this hasn’t come up before, because anyone running OSX and upgrading a local MAMP install will trash their config.php. That’s been the same since time immemorial. Presumably, those people that do this employ the workarounds of either holding Option when dragging then selecting Merge, or using the ditto command.

It doesn’t fundamentally alter the way we distribute the software. To “fix” it, any custom configuration — including config.php — would have to reside outside the entire package that you’d download from textpattern.com; i.e. outside docroot. That would probably entail more hoop-jumping during installation, for example:

Copy the contents of the following textarea into a new file config.php. Make sure this is uploaded in a new directory one level above docroot on your server. Name this new directory something suitable and type it in the box below. Each directory must be unique for each instance of Textpattern. This is especially true if you are running more than one installation on the same server. And if you’re running multi-site you’ll need to… oh, crap… what? You’ve overwritten your entire sites folder that contained all your images and files too?!

Yeah, not pretty. But improvements to the way we do things is always welcome if you can suggest something that’d simplify matters.


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

Offline

#102 2016-06-20 09:04:36

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,653
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

Bloke wrote #299861:

Sure, OSX is an anomaly here, but that’d only really affect MAMP-style installations. I doubt very few run OSX on their web host, so FTPing the files up will do what most people expect: merge.

As I noted earlier, this depends on the configuration of the FTP client. Transmit for instance defaults to “replace” (when uploading folders), but has a “merge” button next to it.

I’m surprised this hasn’t come up before…

you’re not the only one there, to be honest; although I don’t think it is such a problematic issue.

Offline

#103 2016-06-20 09:23:00

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,629
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

phiw13 wrote #299862:

Transmit for instance defaults to “replace” (when uploading folders), but has a “merge” button next to it.

I didn’t realise that, thanks for the info and sorry I missed your previous reference. I’m a FileZilla guy and have never ventured further afield.


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

Offline

#104 2016-06-20 11:20:03

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 478
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

Textpattern update is not easy. Sometime dangerous ?

For me, Textpattern update must be more secure and simple.
Txp update need to manually replace files. And yes, some plateformes has different behaviors. personnlay I use bash “cp” command, because in mac with drag and drop, it’s a nightmare.

For me, a list of some difficulties :

  • Just replace new files directly in FTP in a prod website is not possible, because you don’t now if some plugins are brocken. Allways I make first a update in a local version. I don’t have a test or prod server for small websites.
  • Nothing help with plugins updates availables for new textpattern version. Textpattern.net is out of date. it is necessary to follow this forum, which is not a good solution.
  • Textpattern don’t provide a ‘user & role permission’ preferences. Only core solution is to manually modify “admin_config” file. A plugin exist but it is not an official plugin, no garanti. I modified admin_config on some sites, and on each update I must see if I need make a merge
  • Idem for .htaccess. Sometimes I added some rules.
  • Be careful not to overwrite “images”, “files” folders and the “config.php” file. Don’t copy setup folder…
  • I adapt back-office with my own CSS, in each update of theme, I need to manually link theme to ‘my-custom.css’ and patch my code.

I approve the proposal to add a custom-css in the core, it will improve updates and fix a offical way to modifiy admin theme CSS.

But if we could also scripting files update (propose a official bash script, use composer, One-click update button?), add a core preferences panel for “user & permissions” (please), a plugin update alert message. It would be happiness:)

Offline

#105 2016-06-20 11:24:15

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,192
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

All this simplified install conversation, whilst interesting, needs to be moved to Textpattern 4.7 target, since a beta is not the place to be making substantial changes to the installation process. Please can someone open an issue for this topic at the repo and I will flag it as 4.7 proposed work, for discussion there.

Please come back on to topic for any problems/bugs specifically related to the beta. Thanks all! :)

Offline

#106 2016-06-20 11:30:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,629
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

In the interim, I added a note to README.txt (that few read!) about merging directory contents. Feel free to propose simpler language.


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

Offline

#107 2016-06-20 12:24:43

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,193
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

Not only installed Sequal Pro (excellent app, thank you), but updated installs of mysql and php too. Fresh oil!

So…

ruud wrote #299837:

safe_update('txp_prefs', "name = 'pane_article_textfilter_help_visible'", "name = 'pane_article_textile_help_visible'");...

Just rename the key via PHPmyAdmin.

I’m not exactly sure what your suggesting, but if I look in the txp_prefs table, at key prefs_idx, and column name, the value there is pane_article_textfilter_help_visible. Nothing appears to be duplicate to me.

In fact, that error seems to have gone away, but is replaced by a new one:

User_Error "Invalid default value for 'Posted'" in /Users/me/Sites/evilplans/textpattern/lib/txplib_db.php at line 405.

Last edited by Destry (2016-06-20 12:27:25)


The text persuades, the *notes prove。

Offline

#108 2016-06-20 12:42:15

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,193
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

Just a note, because I don’t want this issue to waylay this thread…

This particular site is my “wion” site at local, and the site is old bones; an installation that’s been updated since 2004. If I don’t figure this out, it’s not a huge deal because I’ve been wanting for years to extract content out of this file tree and DB and manually port it into a fresh install, adapting it to Phil’s new framework, selectors, etc. This will rid me of derelict tables, folders, and files, and that will be a nice feeling.

That said, I have a handful of other sites on local that I’ve not updated to 4.6 yet, so hopefully I won’t run into the same errors. Doesn’t seem like anyone else is.


The text persuades, the *notes prove。

Offline

#109 2016-06-20 13:13:25

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,435
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

Destry wrote #299870:

Not only installed Sequal Pro (excellent app, thank you), but updated installs of mysql and php too. Fresh oil!

Yes, Sequel Pro makes it all a little bit easier, and not just on the eyes.

I’m not exactly sure what your suggesting, but if I look in the txp_prefs table, at key prefs_idx, and column name, the value there is pane_article_textfilter_help_visible. Nothing appears to be duplicate to me.

I think he means, rename the key currently called pane_article_textfilter_help_visible to the new name pane_article_textile_help_visible. You should be able to edit that in place with Sequel Pro.

In fact, that error seems to have gone away, but is replaced by a new one:

User_Error "Invalid default value for 'Posted'" in /Users/me/Sites/evilplans/textpattern/lib/txplib_db.php at line 405....

I’m no expert here, but that sounds like something hasn’t run quite right with your update script as some of the datestamp defaults have changed. I wouldn’t have thought that would effect the Posted column as much as the Modified column, so perhaps check in Sequel Pro to see if you have any strange values in the “Posted” column of the textpattern table. Perhaps there’s some anomaly or zero date in there?


TXP Builders – finely-crafted code, design and txp

Offline

#110 2016-06-20 13:18:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,629
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta released

jakob wrote #299872:

I think he means, rename the key currently called pane_article_textfilter_help_visible to the new name pane_article_textile_help_visible.

Other way round! The new name is pane_article_textfilter_help_visible :-)


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

Offline

Board footer

Powered by FluxBB