Forum

[SOLVED] Bad URI fo...
 
Notifications
Retirer tout

[SOLVED] Bad URI for tool directory

5 Posts
2 Utilisateurs
0 Reactions
1,661 Vu
(@snaaky)
Posts: 6
Active Member
Début du sujet
 
[#8455]

Hi,

When I use ProjeQtOr, some actions request URI "/tool/" to use the .php functionalities.

But, in my case, the URI is not "/tool/*.php" but "../tool/*.php".

I try to remove the parametersLocation.php file to see if I can change this URI in the parameters.php, but I didn't see it.

I didn't see it either in the dabatase, like documentRoot or cronDirectory in the parameter table.

So, the question is : how can I change this call URI once and for all ?

Sincerely.


 
Posté : 31 Août PM 20:088
(@babynus)
Posts: 14952
Membre Admin
 

When I use ProjeQtOr, some actions request URI "/tool/" to use the .php functionalities.

Wich "action" ? 
These URis are not defined in Projeqtor

But, in my case, the URI is not "/tool/*.php" but "../tool/*.php".

Yes, Projeqtor defines Url with a relative patch.

I try to remove the parametersLocation.php file to see if I can change this URI in the parameters.php, but I didn't see it.

This will just redirect to configuration page.

I didn't see it either in the dabatase, like documentRoot or cronDirectory in the parameter table.
So, the question is : how can I change this call URI once and for all ?

No, there is no way to change Projeqtor behavior.


 
Posté : 1 Sep PM 20:099
(@snaaky)
Posts: 6
Active Member
Début du sujet
 

Wich "action" ? 
These URis are not defined in Projeqtor

I mean when I click on a button which need a php script in the tool directory (e.g. if the DocumentRoot is /var/www/html, the tool directory is /var/www/html/tool/).
For example, I go to Configuration > Administration and I click on "scan for issues", then the print.php is called, with a parameter "&page=../tool/adminFunctionalities.php" and return an error 500 (see the screen below). But with the Firefox Administration Console, if I modify the request to "&page=tool/adminFunctionalities.php" and send it, I have a return code 200.

Yes, Projeqtor defines Url with a relative patch.

A relative path from the DocumentRoot or from a specific file or directory ? If this is from the DocumentRoot, so the relative path "../tool/" doesn't exist in my case.

This will just redirect to configuration page.

Yes, I know. I just tried to see if this relative path could be change during the configuration process, but no.

No, there is no way to change Projeqtor behavior.

So, how can I get a working ProjeQtOr ? The behavior I have is not functional. 


 
Posté : 2 Sep AM 10:099
(@babynus)
Posts: 14952
Membre Admin
 

A relative path from the DocumentRoot or from a specific file or directory ?

It is a path relative to current page.
By default, default page is in directory view of projeqtor.

So, how can I get a working ProjeQtOr ?

You must have so specific configuration for Apache / PHP.
The only way I can imagine this, is that you defined a virtualhost pointing to /var/www/html/projeqtor/view
You localhost should point to var/www/html/projeqtor/


 
Posté : 2 Sep PM 14:099
(@snaaky)
Posts: 6
Active Member
Début du sujet
 

It is a path relative to current page.
By default, default page is in directory view of projeqtor.

If it's a path from /view/print.php, the path ../tool/adminFunctionalites.php is good. But with this path, it returns a error 500.
With the path /tool/adminFunctionalities.php, it returns a code 200.

So why isn't working ? What can I do to have the "scan for issue" functionality working ?

EDIT : I just saw your edit, I will search this.

EDIT2 : Sorry, the URI is good. It was just a PHP error...  (memory limit).


 
Posté : 2 Sep PM 14:099
Share:
Retour en haut