Extra backslash before plugins folder

Asked by Srdjan on 2009-08-20

Whenever I try to create a new menu, I get the following error:

I cannot find the plugin file you wish to create a menu item with, I looked in;
/services/webpages/c/o/conestogastudents.com/public/new/tickets//plugins/Skeleton/example.php

The problem seems to be that phpDevShell is putting an extra backslash before the plugins folder. I also can't view any existing menus, as I get the following error:

SECURITY ALERT, There seems to be a security limitation, you are not allowed to run this script or the script could not be found. Make sure your session did not expire, you might be logged out.

I assume the two problems are related.

Please advise. Thanks.

Srdjan

Question information

Language:
English Edit question
Status:
Answered
For:
PHPDevShell Edit question
Assignee:
No assignee Edit question
Last query:
2009-08-20
Last reply:
2009-08-21

This question was reopened

Srdjan (srdjan-s-kokotovic) said : #1

Just realized it's an extra forward slash, not backslash. Apologies.

Srdjan

Srdjan (srdjan-s-kokotovic) said : #2

I figured out the second problem occurs because I was logged in as admin, and was trying to open up the register new account script. As soon as I logged out, it worked fine.

The first problem still exists though.

Srdjan

Greg (gregfr) said : #3

When you create a new menu item, depending on the item type, it may be mandatory to have a corresponding script file in the plugin folder. Can you be more specific about the parameter of this new menu item?

Please do this as root (PHPDS root, not unix root) ; note that the extra slash in the path shouldn't be problematic.

Srdjan (srdjan-s-kokotovic) said : #4

Hi Greg,

I was trying to follow the plugin tutorial that's featured on the PHPDS wiki. It says to create an example.php file in the Skeleton folder, and an example.tpl file in the templates folder.

I have the following:

'plugins/Skeleton/example.php'
'plugins/Skeleton/templates/example.tpl'

When I go to create a new menu, for the Plugin Name/Folder I type in Skeleton, and for the URL/Path location I type in example.php (as per the tutorial). That's when I get the error message.

I am doing this from my admin account (named root).

Thanks for all your help!

Srdjan (srdjan-s-kokotovic) said : #5

Hi Greg,

I was trying to follow the plugin tutorial that's featured on the PHPDS wiki. It says to create an example.php file in the Skeleton folder, and an example.tpl file in the templates folder.

I have the following:

'plugins/Skeleton/example.php'
'plugins/Skeleton/templates/example.tpl'

When I go to create a new menu, for the Plugin Name/Folder I type in Skeleton, and for the URL/Path location I type in example.php (as per the tutorial). That's when I get the error message.

I am doing this from my admin account (named root).

Thanks for all your help!

TitanKing (titan-phpdevshell) said : #6

Hi, if you edit any menu item you will note that the path is related to the plugin folder.

The double forward slash does not seem to be correct and could be a bug, however, this should not cause any problems as the script should still be loaded. How is the permissions set on that file?

TitanKing (titan-phpdevshell) said : #7

Apologies (above) I mean the your unix permission, how are they set, is it possible that PHPDS is not able to read it due to incorrect permissions.

Can you help with this problem?

Provide an answer of your own, or ask Srdjan for more information if necessary.

To post a message you must log in.