possible safe_mode workaround

Asked by Dadaisme

Hi!

First : Great project!!

Thx for your answer.

I've got arourd the language problem. Because of safe_mode(*), I have to create all the subdirectory before prosepoint/drupal creates them. It would be the same for the image upload. For language, default/files/languages, for images, default/files/imagecache/small /medium /large(I'm not shure about that last one, but since the first two were created, I took a step forward!), default/files/css I suppose there will be one for javascript? /js? many others?

Do you have the full directory paths created by prosepoint when everyting is in use? I've created a few of them, but I have to do it on a find them late, make the server operator delete or chmod term!

For the files, I've found a cleanup.php script utility from gallery2 (can I put the link here?) that chmod the files. I will try to add a task to the cron, a action or someting. Then, all will be ready, I hope!

Thx.

Jean Charles

(*)server operator are never willing to turn safe_mode off!

N.B.: On an other smaller mater :
[Donnita]In using TMA2, the following item is showing up in the error log under Page
Not Found: profiles/prosepoint/themes/tma/tma/foo.gif

Was this gif included in the theme, or perhaps it just didn't extract
properly? It most certainly isn't where it says that it should be.[/Donnita]

[bengtan]On other matters ... profiles/prosepoint/themes/tma/tma/foo.gif is intentionally a non-existent file.[/bengtan]

Ok, but the foo 404 error fills the journal, 1 error by page load. How do I erase these from the journal? I know we can filter the journal, but how will I find the other 404 from those 100s 1000s 10000s etc. foo?

----- Original Message -----
From: "Beng Tan - Admin"
Sent: Sunday, February 22, 2009 7:41 PM
Subject: Re: [General] language selection from installation

> Hi Jean Charles,
>
> Thanks for your message. There are two parts to this issue.
>
> 1. ProsePoint currently doesn't support changing the language before
> installation. I can have a look into adding that feature, but ....
>
> 2. Having PHP safe mode enabled causes problem for ProsePoint. It
> especially interferes with image and file uploads. So, I think it is
> better to have safe mode disabled than to try to fix (1).
>
>> Is it possible to install a basic drupal site whit the correct translation
>> and then install the prosepoint profile?
>
> I don't think this will work.
>
> Beng
>
> ProsePoint developer

Question information

Language:
English Edit question
Status:
Solved
For:
ProsePoint Edit question
Assignee:
No assignee Edit question
Solved by:
bengtan
Solved:
Last query:
Last reply:
Revision history for this message
Dadaisme (hybride-videotron) said :
#1

Any suggestion on where and how I should place the cleanup script in prosepoint? I will manage to add it somewhere, but I'm new to the drupal world. Where would be the best place for it to work automaticaly for the different upload possibilities (media/images/files)?

Thx.

Revision history for this message
Best bengtan (bengtan) said :
#2

I wouldn't recommend this as a workaround for safe_mode, but if it works for you, then good.

Off the top of my head, there is also default/files/imagecache/thumbnail and default/files/imagecache/square and default/files/js. But I cannot give you an exhaustive list because new directories may be created depending on how you use the site.

You could try installing ProsePoint on a local server at your office or home and seeing what directories it creates directly.

Without knowing exactly what your cleanup.php does ... you could try putting it in .../sites/default. If you place it higher than this, it might get overwritten by ProsePoint upgrades. If you put it in .../sites/default/files, it won't run. And to call your cleanup.php, just directly call the url.

> Ok, but the foo 404 error fills the journal, 1 error by page load.
> How do I erase these from the journal? I know we can filter the journal,
> but how will I find the other 404 from those 100s 1000s 10000s etc. foo?

You can't erase event logs from the journal :)

Have you tried looking at the page url .../admin/reports/page-not-found? That will list the unique errors, so the error message for foo.gif will only appear once.

Revision history for this message
Dadaisme (hybride-videotron) said :
#3

Thx!

Revision history for this message
Dadaisme (hybride-videotron) said :
#4

Thanks bengtan, that solved my question.