<div dir="ltr"><div>Hello Petko,</div><div><br></div><div>Thanks for your response with the steps for me to try.  <br></div><div><br></div><div>I verified that I had the file pmcal-20181207.php as you suggested and I did.  I then removed the ?> closing PHP marker in the pmcal.php file, verified that my other PHP files in the local/ and cookbook/ directories didn't have that closing PHP marker (they didn't) and the upload now works!</div><div><br></div><div>Thank you so much for your quick and thorough response.</div><div><br></div><div>Take care,</div><div><br></div><div>Paul<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jul 2020 at 12:29, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We have pmcal-20181207.php from the cookbook installed on the demo <br>
section at <a href="http://pmwiki.org" rel="noreferrer" target="_blank">pmwiki.org</a> and I am able to upload.<br>
<br>
Can you edit a page, and save your changes? Or do you see the login form <br>
all the time?<br>
<br>
Also check the wiki with a different browser - Chrome, Firefox, MSIE, <br>
Edge, and report.<br>
<br>
Here is what you can try.<br>
<br>
First, check if you have that file pmcal-20181207.php and not an earlier <br>
one. You should still rename it to pmcal.php, -OR- you need to change <br>
the include_once() line in config.php to the correct file name.<br>
<br>
Second, that file has a trailing "?>" closing PHP marker. You should <br>
remove it, and only have an empty last line. Sometimes such a marker may <br>
cause the server to incorrectly send cookies, then the browser rejects <br>
them and you are unable to login.<br>
<br>
Do this for all other PHP scripts in the directories local/ and <br>
cookbook/ -- any file that has a closing "?>" marker needs to be edited, <br>
the marker removed, and the file re-uploaded to your server.<br>
<br>
Third, check this new variable $EnableUploadAuthorRequired, especially <br>
if you have a custom upload form, or a recipe that manages uploads:<br>
<br>
<br>
<a href="https://www.pmwiki.org/wiki/PmWiki/EditVariables#EnableUploadAuthorRequired" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/PmWiki/EditVariables#EnableUploadAuthorRequired</a><br>
<br>
Check with $EnableUploadAuthorRequired = false; in config.php which <br>
mimics how it worked in the past.<br>
<br>
If none of the above helps, see the section "I have to log in twice (two <br>
times) (2 times)" in the page:<br>
<br>
   <a href="https://www.pmwiki.org/wiki/PmWiki/Troubleshooting" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/PmWiki/Troubleshooting</a><br>
<br>
Direct inline calls to some core functions from config.php or from a <br>
recipe in some cases cause PmWiki to cache the user credentials too <br>
early and you have to login more than once. If you are in this case, you <br>
should try moving these calls to the end of config.php or give us more <br>
information so that we can work on a fix.<br>
<br>
Petko<br>
<br>
-- <br>
If you upgrade :  <a href="http://www.pmwiki.org/Upgrades" rel="noreferrer" target="_blank">http://www.pmwiki.org/Upgrades</a><br>
<br>
<br>
On 16/07/2020 17:23, Paul Schoemaker wrote:<br>
> After updating pmcal/pph with the latest code from the site, the site<br>
> content is displayed correctly again.   Unfortunately, the upload<br>
> functionality now doesn't work.<br>
> <br>
> Here is what happens:<br>
> <br>
> 1.  I create the new link in the pmWiki editor using (Attach:)<br>
> 2.  Then I click on the new link to start the Upload process.<br>
> 3.  I enter the password on the password required screen.<br>
> 4.  I then select the pdf file to upload, put my name in the Uploader <br>
> box<br>
> and click Upload.<br>
> 5.  Instead of the usual file uploaded message, I get taken to the <br>
> password<br>
> required screen again.<br>
> 6.  I enter the Password again, click on OK and then the password <br>
> required<br>
> screen appears again.<br>
> 7.  After entering the password a second time and clicking on OK,  the<br>
> screen that allows you to choose a file appears again with the message<br>
> "Test file.pdf:  no file uploaded".  If I choose the file again and <br>
> click<br>
> on Upload, I get taken back to step 5.<br>
> <br>
> I'm at a loss what to try next.  If I comment out the pmcal.php Recipe <br>
> the<br>
> Upload works fine!<br>
</blockquote></div>