qdrupal omits base_path() when it generates the path to a qcubed/qdrupal application

picardo - July 1, 2009 - 21:04
Project:QDrupal
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I am figuring out this application creation process. I created my app, and added the file into MyApp/pages. Template went into files/qdrupal/MyApp/templates. The file should have appeared in the dropdown, right?

Btw, here is the error messages:

* warning: scandir(C:/Users/Picardo/Sites/sites/default/files/qdrupal\MyApp/pages) [function.scandir]: failed to open dir: No error in C:\Users\Picardo\Sites\drupal-6\sites\all\modules\qdrupal\qdrupal.link.inc on line 165.
* warning: scandir() [function.scandir]: (errno 0): No error in C:\Users\Picardo\Sites\drupal-6\sites\all\modules\qdrupal\qdrupal.link.inc on line 165.
* warning: Invalid argument supplied for foreach() in C:\Users\Picardo\Sites\drupal-6\sites\all\modules\qdrupal\qdrupal.link.inc on line 165.

#1

picardo - July 7, 2009 - 15:28

Can anyone help?

#2

bec - August 4, 2009 - 22:44
Title:So I am trying to add a file to an application. Drop down is empty. » qdrupal omits base_path() when it generates the path to a qcubed/qdrupal application

When qdrupal generates the path to an application in qdrupal_application_disk_path(), it omits Drupal's base path. This isn't a problem if Drupal is at your document root, but if Drupal is in a subfolder then qdrupal fails to find its applications. This is simple to solve; I've attached a patch.

AttachmentSize
qdrupal_application_base_path.patch 555 bytes

#3

bec - August 4, 2009 - 22:45
Component:User interface» Code
Status:active» needs review
 
 

Drupal is a registered trademark of Dries Buytaert.