Needs review
Project:
Mathematics Filter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2009 at 03:06 UTC
Updated:
12 May 2010 at 06:48 UTC
Getting a Drupal "page not found" error in the iframe when trying to use the [graph] command.
Analysis
The relative URL is incorrect: http://mydomain.test/node/sites/all/modules/mathfilter/includes/graphfra... (/node should not be there).
Fix
Prepended a '/' to drupal_get_path() on line 83 to make the returned path relative to the server root.
$graph_path = '/'.drupal_get_path('module', 'mathfilter') .'/includes/graphframe.php?';
Fix seems to work fine on both the LInux server and Windows XP, both using Apache 2. Otherwise, the current DEV version seems to work great.
Comments
Comment #1
dwees commentedThanks for the feedback, that does seem like an easy fix. Alternatively we could use file_get_path or something similar to resolve to an absolute path.
If I ever get a chance to commit any changes I'll test this fix.
Dave
Comment #2
RobertOak commentedThis works, with the path change above and so far the 6.x-1.x-dev is working. The ones with their zip file, it doesn't work and also if you're upgrading from 5.x it will break all of your existing equations in your content.