The only file you need is tw-receiver-server.php on the server. The other 
files are just for the project and aren't actually needed to use the plugin.

I would recommend you get things working with a simple password first, and 
save using the $extSecKeyPath mode for later.

So just set the same secret password in Control Panel > Saving > TW Receiver
And modify the tw-receiver-server.php file and make *$userpassword* = the 
same password you're using 
-- That should solve your Authentication Error

Maybe start with a fresh copy of tw-receiver-server.php to make sure you 
don't have any bad edits.

and thank you for this feedback, I'll make some adjustments to the readme 
and look at minimum php version requirements.


On Wednesday, September 5, 2018 at 10:49:05 PM UTC-4, TonyM wrote:
>
> Thanks Sendwheel,
>
> I possibly have enough knowledge to be dangerous, but not to get this 
> working. Perhaps you could extend the instructions a little to help me
>
> I do not yet have it working, I create a new tiddler then select the save 
> icon which say its started saving the returns Error while saving:
>
> *Error:*
> *Server Error: Authentication Failure*
>
> I uploaded a Wiki to the host without the TW Receiver enabled otherwise I 
> could not save it locally.
> I then go to the served wiki in the browser and enable it, then try and 
> save it with the above result.
>      The server URL is by default tw-receiver-server.php
>      I tried https://psat.com.au/tiddlywiki/tw-receiver-server.php with 
> no effect
> So I discovered the instructions make no mention of placing the following 
> "components" anywhere 
>
>    - tw-receiver-config.ini
>    - tw-receiver-handler-comp.js
>    - tw-receiver-ui-comp.tw 
>    
> So I uploaded tw-receiver-config.ini  to my home/root directory
>
>    - However I am not so sure how to provide the secret key, is it 
>    encoded? I put it in as entered in the wiki
>    - Then set $extSecKeyPath = 
>    ../../tw-receiver-config.ini;  (Public_html then "root" folder, ie up 2 
>    levels)
>    - Then set the password (I have not being prompted for this anywhere)
>       - The wiki is not saving but I have not received the *Error: **Server 
>       Error: Authentication Failure* again
>       - The Debug was not working and I found the following error
>       
>       [06-Sep-2018 12:24:06 Australia/Melbourne] PHP Parse error:  syntax 
> error, unexpected '.' in 
> /home2/psatadmin/public_html/tiddlywiki/tw-receiver-server.php on line 19
>       I changed this to $extSecKeyPath = "/tw-receiver-config.ini;" unlike 
> the // Example: $extSecKeyPath = "../privatedir/tw-receiver-config.ini"
>       
>       
> *The state of play*
>
>    - *I am getting *Error while saving: Error: Server Error: 
>    Authentication Failure
>    with external key reachable  NOI expect its my path to the 
>    tw-receiver-config.ini
>    Or not placing the tw-receiver-handler-comp.js and 
>    tw-receiver-ui-comp.tw files where they belong.
>
> *Where if anywhere, should I place ?*
>
>    - tw-receiver-handler-comp.js
>    - tw-receiver-ui-comp.tw 
>
> *How do I specifiy the path to *tw-receiver-config.ini* ?*
>
> I have some other trivial Questions, I may ask later.
>
> Thanks
> Tony
>
>
> *Other notes*
>
> I was getting an error in the folders error_log as follows
> [06-Sep-2018 01:23:27 UTC] PHP Fatal error:  Call to undefined function 
> random_int() in /home2/psatadmin/public_html/tiddlywiki/tw-receiver-server
> .php on line 135
>
> However I switched the php version to 7.2 and it no longer seems to be 
> occuring
>
> I created a "backups" folder, which did not work until I read 
> the tw-receiver-server.php and saw it is twbackups The Debug now reports
> backups directory exists OK
> backups directory is writable OK
> this directory is writable 
> OK
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/b9b59c7b-dc7f-4289-9912-10e3f487bab3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to