setup correct saving of changes?

189 views
Skip to first unread message

sa-w w

unread,
Apr 2, 2017, 9:11:49 AM4/2/17
to TiddlyWiki
first try of tiddlerwiki, its simple and ok, however, everytime i make a change in the file and want to save it, it makes a copy of the whole file and then i need to reload that to get the latest.

how do i setup so it save changes in the same file?

thanks for reply

Mark S.

unread,
Apr 2, 2017, 9:49:00 AM4/2/17
to TiddlyWiki

Mat

unread,
Apr 2, 2017, 10:34:32 AM4/2/17
to TiddlyWiki
Hi sa-w-w

yeah, this has recently been discussed and is mostly due to browser policies. If you're using Chrome, here's an extension that I find useful;

Downloads Overwrite Already Existing File

<:-)

sa-w w

unread,
Apr 2, 2017, 2:53:08 PM4/2/17
to TiddlyWiki
Thanks Mark and Mat for reply. I followed the link
and i was looking in the Apache error log, 
[Sun Apr 02 20:23:10.398331 2017] [fcgid:warn] [pid 6661] [client my.ip.adress:port] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function split() in /home/one9/public_html/store.php:245, referer: http://19.website.com/index.html
[Sun Apr 02 20:23:10.398393 2017] [fcgid:warn] [pid 6661] [client my.ip.adress:port] mod_fcgid: stderr: Stack trace:, referer: http://19.website.com/index.html
[Sun Apr 02 20:23:10.398399 2017] [fcgid:warn] [pid 6661] [client my.ip.adress:port] mod_fcgid: stderr: #0 {main}, referer: http://19.website.com/index.html
[Sun Apr 02 20:23:10.398404 2017] [fcgid:warn] [pid 6661] [client my.ip.adress:port] mod_fcgid: stderr:   thrown in /home/one9/public_html/store.php on line 245, referer: http://19.website.com/index.html

And the apache access log tells me this....
my.ip.adress - - [02/Apr/2017:20:23:07 +0200] "POST /store.php HTTP/1.1" 500 185 "http://19.website.com/index.html" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
my.ip.adress - - [02/Apr/2017:20:23:15 +0200] "GET /store.php HTTP/1.1" 200 611 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"

it seems that split() is debricated in php7 and im thinking of replace with explode() but not sure if it will work. I have set chmod -R 777 * for folder store.php and index.html but it seems not to work.... suggestions? :/

Xavier Cazin

unread,
Apr 2, 2017, 3:26:39 PM4/2/17
to tiddl...@googlegroups.com
Hi
​ ​
sa-w w
​,

I confirm that merely replacing split() with explode()​ is enough to make store.php work with PHP7.

Cheers,
X.

-- Xavier Cazin

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a52ace66-f8a6-4963-bde5-a0add000e43e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

sa-w w

unread,
Apr 3, 2017, 12:44:10 PM4/3/17
to TiddlyWiki
explode() indeed fixed that issue, however, now i get popup telling me "Error :  - File NOT uploaded !"
on row 343 i can read:  echo "Error : " . $_FILES['error']." - File NOT uploaded !\n";

and i can read
my.ip.adress - - [03/Apr/2017:18:02:54 +0200] "POST /store.php HTTP/1.1" 200 302 "http://19.website.com/index.html" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"

seems that this php uploadfile is not working ok, someone have a more updated version?

-- Xavier Cazin

To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Xavier Cazin

unread,
Apr 3, 2017, 4:30:39 PM4/3/17
to tiddl...@googlegroups.com
Hi sa-w w,

You are getting closer! Your log shows that the file was actually sent (POSTed) and received, but then there was no place to save it: the "upload dir" that you passed was either not created or not writable on the server.

Cheers,
Xavier.

To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

sa-w w

unread,
Apr 4, 2017, 11:49:41 AM4/4/17
to TiddlyWiki
Terminal tells me this: 
 stat -c "%a %n" index.html
777 index.html
 stat -c "%a %n" store.php
777 store.php
stat -c "%a %n" store
777 store
stat -c "%a %n" backup
755 backup

not sure where i can look now, i started to wonder if the tiddlywiki-post to php is returned empty.

suggestion? :) 

Xavier Cazin

unread,
Apr 4, 2017, 12:00:50 PM4/4/17
to tiddl...@googlegroups.com
Hi
​ ​
sa-w w

Before checking the permissions, my first move would be to check whether the config on your wiki actually matches the setup on your filesystem. Could you show us a screenshot of the "Tiddlyspot​ Server" tab under the Saving Tab in the Control Panel ? and then the result of "ls -lR" command in the directory that contains store.php?

Cheers,
X.

-- Xavier Cazin

To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

sa-w w

unread,
Apr 4, 2017, 1:32:23 PM4/4/17
to TiddlyWiki
im not sure what you mean with matches the setup
index.html ->configwheel->saving tab
Wiki Name: username1
Password: password1
Upload Filename: index.html
Upload Directory: store/
Backup Directory: backup/

root@ml350:/home/one9# ls -lR public_html
public_html:
totalt 4360
drwxr-xr-x 2 one9 19      4096 apr  3 17:50 backup
-rwxrwxrwx 1 root root 4412481 apr  2 18:39 index.html
-rwxrwxrwx 1 root root     200 feb 17 14:07 ok.php
drwxrwxrwx 2 one9 19      4096 apr  3 19:57 store
-rw-r--r-- 1 root root   11452 apr  2 21:53 portcheck.php
-rwxrwxrwx 1 root root    9567 apr  2 20:54 ipcheck.php
-rw-r--r-- 1 root root   11209 apr  2 21:14 store.php

public_html/backup:
totalt 0

public_html/store:
totalt 0





-- Xavier Cazin

Mark S.

unread,
Apr 4, 2017, 2:02:31 PM4/4/17
to TiddlyWiki
I might not be understanding your output correctly, but it looks like you've told the config that the php save code is at http://19.website.com/store.php when it is actually at http://19.website.com/store/store.php .

sa-w w

unread,
Apr 4, 2017, 2:03:12 PM4/4/17
to TiddlyWiki
I did successifully run the same setup and files in a local windows server but theres a change in the response
my apache access log.
my.ip.adress - - [04/Apr/2017:19:56:24 +0200] "POST /store.php HTTP/1.1" 200 124 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.0.9895 Safari/537.36"

sa-w w

unread,
Apr 4, 2017, 3:24:43 PM4/4/17
to TiddlyWiki
ok, it seems that in its original form it will work well but when running plugins(some of it) it will say big nono. :( 
Reply all
Reply to author
Forward
0 new messages