Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.

TOPIC:

import/ needs to be writeable 10 years 8 months ago #1422

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Change it to absolute path
For example c:/xerte/logs

It is supposed to be an absolute file path, not a url.

Does that help?

Try to place it in the USER-FILES folder.

Please Log in or Create an account to join the conversation.

import/ needs to be writeable 10 years 8 months ago #1425

  • cgoacher
  • cgoacher's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 26
  • Thank you received: 0
Hi Tom,

Ah sorry I had assumed that the error logging would only be to a directory within our xerte installation folder and not the top level tmp folder. I've now reverted it back to what it was and found the error logging works fine and have found the following error being produced:

'Warning: we had problems either creating the temp dir import/7083/ or chmod'ing it 0777.' which I can see seems to be generated by the next part of the code on the import page after the part where I replaced the function before.

Have you come across this before at all?

Thanks again

Craig

Please Log in or Create an account to join the conversation.

import/ needs to be writeable 10 years 8 months ago #1426

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Well, ehmm no, because of the code before. It seems to indicate that there really is still something wrong with the permissions of the import folder.

Is the import/7083 folder created?

Please Log in or Create an account to join the conversation.

import/ needs to be writeable 10 years 8 months ago #1427

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
If you really want to differentiate between folder creation and permission changing change import.php lines 368-371:
$ok = mkdir($xerte_toolkits_site->import_path . $this_dir) && chmod($xerte_toolkits_site->import_path . $this_dir,0777);
    if(!$ok) {
        _debug("Warning: we had problems either creating the temp dir {$xerte_toolkits_site->import_path}$this_dir or chmod'ing it 0777.");
    }

to something like this:
    $ok = mkdir($xerte_toolkits_site->import_path . $this_dir) 
    if(!$ok) {
        _debug("Warning: we had problems creating the temp dir {$xerte_toolkits_site->import_path}$this_dir ");
    }
    $ok = chmod($xerte_toolkits_site->import_path . $this_dir,0777);
    if(!$ok) {
        _debug("Warning: we had problems chmod'ing {$xerte_toolkits_site->import_path}$this_dir to 0777.");
    }

to

Please Log in or Create an account to join the conversation.

import/ needs to be writeable 10 years 8 months ago #1444

  • cgoacher
  • cgoacher's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 26
  • Thank you received: 0
Hi Tom,

Sorry for the delay getting back on this, I've been a bit busy and a sneaky missing semi colon was causing the change to fail at first : )

It's looking like it can't create the directory but the app pool account definitely has write and modify permissions for the import directory and the site is configured to use the app pool account in IIS so I'm not sure what else it could need?

Thanks

Craig

Please Log in or Create an account to join the conversation.

import/ needs to be writeable 10 years 8 months ago #1445

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Can you, as a test, set the permissions on the folder wife open?

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenJohnSmith
Time to create page: 0.054 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search