Save project file in OneDrive

I have a working version of PHPMaker 2023 installed in the following directory:
C:\Program Files (x86)\PHPMaker 2023

Now I have additionally installed the current version 2026 in the following directory:
C:\Program Files (x86)\PHPMaker 2026

I can create a new project with version 2026. However, when I try to save the project using “Save As” with the name Beer.pmp to
D:\OneDrive\Web\phpMakerProjekte\phpMaker2026,
I get an error:
Could not find file: D:\OneDrive\Documents\phpMaker\Beer(1).pmp
and/or
Could not find file: D:\OneDrive\Documents…\Beer_24a74…

I ran Process Monitor and got the following information:
D:\OneDrive\Dokumente\PHPMaker\Projects\project1.pmp – Path Not Found
D:\OneDrive\Web\phpMakerProjekte\phpMaker2026\Bierglaeser2026.pmp – SUCCESS
D:\OneDrive\Web\phpMakerProjekte\phpMaker2026\Beer.pmp – NAME Not Found
D:\OneDrive\Web\phpMakerProjekte\phpMaker2026\Beer.pmp – SUCCESS

D:\OneDrive\Dokumente\PHPMaker\Backup\Beer(1).pmpNAME Not Found

It seems that the newly installed version 2026 still has a connection to D:\OneDrive\Dokumente\PHPMaker\.

However, I save my .pmp files in
D:\OneDrive\Web\phpMakerProjekte\phpMaker2026
and not in D:\OneDrive\Dokumente\PHPMaker\.

In %AppData%, I have a separate directory for each version.

So, it looks like some configuration from a previous version is interfering.
How can I solve this problem so that both versions can run properly?

Each version is independent in this regard.

There is a registry setting HKEY_CURRENT_USER\Software\PHPMaker\26\Settings\GeneralProjectsFolder controlling where PHPMaker saves the projects, you may change it if you prefer to save projects elsewhere.

Computer\HKEY_CURRENT_USER\Software\PHPMaker\26\Settings\General
Changed ProjectsFolder from
%USERPROFILE%\Documents\PHPMaker\Projects
to
D:\OneDrive\Web\phpMakerProjekte\phpMaker2026

Launch phpMaker 20206
-
Project –> New

  • insert informations (Server, Unsername, Password…)
  • Connect (working)
  • Project –> Save
    Choose folder D:\OneDrive\Web\phpMakerProjekte\phpMaker2026
    Projekt Name BeerNew.pmp

Error MsgBox: Could not find file D:\\..\\BeerNew_071312…

  • Click on ok

Result
BeerNew.pmp has been created in D:\OneDrive\Web\phpMakerProjekte\phpMaker2026

  • Again Project → Save
    New Error MsgBox: Could not find file D:\\OneDrive\\Dokumente\\PHPMake..\\**BeerNew(1)**.pmp

I’ve done some testing, and it seems that ProjectsFolder is only used to store the last project folder. So the problem is:

Step 1. Your new project name is BeerNew.pmp, but when you save, it tried to find BeerNew_071312... but failed. Then it save the project file to the selected folder successfully.
Step 2. When you save again, it failed to find BeerNew(1).pmp (with index) in the correct folder.

Is above description correct?

Questions:
Step 1. Can you see the full path of D:\\..\\BeerNew_071312…? Since it starts with D:\\, I believe it looks in the correct folder, but tries to find a file/folder with suffix. I believe the suffix is a GUID (your project ID). Correct?
Step 2. When you save again, after the error, did the file saved correctly?

I believe PHPMaker does not have full write permssions to your OneDrive folder, when it save, it tried to create the Git backup folder BeerNew_<ProjectID> but failed. Then it tries to create a backup project BeerNew(1).pmp and failed again. If that’s the case, you should make sure the current Windows user can create folder and files in your OneDrive project folder. (Not sure why it can save BeerNew.pmp though.) Since it is a OneDrive folder, you may need some extra configuration to grant permissions.

Note that there are 2 folders involed (both under OneDrive in your case):

  1. The folder that you choose to store your projects (D:\OneDrive\Web\phpMakerProjekte\phpMaker2026)
  2. The PHPMaker backup folder is %USERPROFILE%\Documents\PHPMaker\Backup. Normally %USERPROFILE% is C:\Users\<username>, but if you enable OneDrive, it is usually redirected to C:\Users\<username>\OneDrive.

I try to answer your questions:

Step 1. Your new project name is BeerNew.pmp, but when you save, it tried to find BeerNew_071312… but failed.
Then it save the project file to the selected folder successfully.
Step 2. When you save again, it failed to find BeerNew(1).pmp (with index) in the correct folder.

Is above description correct?

Answer:
This is correct. It saves BeerNes.pmp initially. The second time - saving again - it fails with BeerNew(1).pmp

Step 1. Can you see the full path of D:\..\BeerNew_071312…? Since it starts with D:\,
I believe it looks in the correct folder, but tries to find a file/folder with suffix.
I believe the suffix is a GUID (your project ID). Correct?

Answer:
I do have following folder in D:\OneDrive\Dokumente\PHPMaker
Backup
Report

So it seems, that the error D:..\BeerNew_071312… has something to do with this folders.
I cannot see the whole path in the error message. I believe, that D:..\BeerNew_071312… points to
the D:\OneDrive\Dokumente\PHPMaker

Note that there are 2 folders involed (both under OneDrive in your case):

The folder that you choose to store your projects (D:\OneDrive\Web\phpMakerProjekte\phpMaker2026)
The PHPMaker backup folder (%USERPROFILE%\Documents\PHPMaker\Backup).
Normally %USERPROFILE% is C:\Users, but if you enable OneDrive, it is redirected
to C:\Users\OneDrive.

Answer
In C:\Users\yl\AppData\Roaming I see
C:\Users\yl\AppData\Roaming\phpmaker2026
C:\Users\yl\AppData\Roaming\PHPMaker

It seems, that D:\OneDrive\Dokumente\PHPMaker causes the problem ?

I tried to save my project in C:\Temp\phpMaker. Here I have the same issue.

What I meant was: (in your case)

  1. D:\..\BeerNew_071312… is actually D:\OneDrive\Web\phpMakerProjekte\phpMaker2026\\???\BeerNew_071312...\BeerNew.pmp where 071312... is the project ID of your project. The folder is where PHPMaker tries to create for Git history.
  2. D:\OneDrive\Dokumente\PHPMake..\BeerNew(1).pmp is actually D:\OneDrive\Dokumente\PHPMaker\Backup\BeerNew(1).pmp, The folder is where PHPMaker saves your backup files (up to 100 files).

You need to ensure the the current Windows user has permissions to create folder and files in these two folders.

It appears the your OneDrive redirects %USERPROFILE% to D:\OneDrive. Hence the problem.

All permissions are already granted. Windows user ha all necessary rights. To mention, that phpMaker 2023 works fine with the same configuration.

After a little research on OneDrive I found:

  • OneDrive manages ACLs internally.
  • Files can be locked during sync or unavailable offline.
  • Windows Defender’s Controlled Folder Access blocks non-whitelisted apps.
  • Changing NTFS permissions doesn’t guarantee write access.

Changed ProjectFolder
C:\Temp\phpMaker2026

Changed Registry Key Project Folder to C:\Temp\phpMaker2026
AppDataPath = %AppDataPath%\phpMaker2026
Install Path = C:\Program Files (x86)\PHPMaker 2026

Still the same errors:
Could not find file
D:\O..\BeerNew_b0063… (D:\OneDrive\Dokumente\phpMaker\BeerNew(1).pmp
and after saving in C:\Temp\phpMaker
Could not find file, if I try again to save.
D:\OneDrive\Dokumente\phpMaker\BeerNew(1).pmp

There is no relation to OneDrive anymore, so why does phpMaker tries to save files on OneDrive

All the configuration is in %AppData%

No registry key shows onedrive in relation to phpMaker.

Strange…

I could solve the problem:

I deleted D:\OneDrive\Dokumente\phpMaker.

After that I could not start phpMaker:
”Could not find D:\OneDrive\Dokumente\phpMaker

Then I deinstalled phpMaker and deleted phpMaker 2026 in %AppData%

Problem could have been because I upgraded Beer.pmp from phpMaker 2023 zu 2026. :wink:

PHPMaker use the MyDocuments (which is supposed to be always writable for the current Windows user) to backup your projects by default (not by registry). However, if you use OneDrive, it will redirect the MyDocuments folder to the corresponding folder under your OneDrive folder (in you case, D:\OneDrive\Dokumente) which may cause permissions issue.

v2026.1 adds a registery setting BackupFolder under HKEY_CURRENT_USER\Software\PHPMaker\26\Settings\General, you can set that to use a folder outside your OneDrive folder to avoid the problem.

After downloading 2026.1 saving the project (including backup) works finde.

Could there be another problem:
I opened my project and clicked on “Code (Server Events, Client Scirpts and Custon Templates)

Now I receive an Error:
Microsoft Edge has no read and write access to this datafolder:
D:\OneDrive\Documents\phpMaker2026\WEbView2\EBWebView

Same problem as the backup folder ?

The new location is D:\phpMakerBackup\PHPMaker (Not OneDrive, same folder as backupFolder)
D:\phpMakerBackup\PHPMaker\WebView2

Same problem. WebView2 requires a user data folder, by default, it is <MyDocuments>\PHPMaker2026\WebView2 which is writable normally. But in your coase it is also redirected by OneDrive and leading to the same problem. It is not the same folder as the backup folder.

If possible, you can try turn off backup for the Documents folder from your OneDrive for the time being to avoid such problems, before we can handle like the backup folder from next minor upgrade.