SimpleDesk

SimpleDesk! => SimpleDesk Tracker => Topic started by: wintstar on November 14, 2015, 01:14:06 PM

Title: Bug Subs-SimpleDeskProfile.php Undefined variable: sourcedir
Post by: wintstar on November 14, 2015, 01:14:06 PM
SimpleDesk version: SimpleDesk 2.0.1
SMF version:  SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 08.11.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
SMF 2.1 Beta 2 is from the latest revision from the GitHub 08.11.2015

Error by click of  Helpdesk => "OPTIONS"

QuoteNotice: Undefined variable: sourcedir in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Warning: require_once(/Profile-Modify.php): failed to open stream: No such file or directory in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Fatal error:  require_once(): Failed opening required '/Profile-Modify.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Solution

open root/Sources/sd_source/Subs-SimpleDeskProfile.php
find
function shd_profile_areas(&$profile_areas)
{
    global $modSettings, $context, $txt;


replaces with
function shd_profile_areas(&$profile_areas)
{
     global $sourcedir, $modSettings, $context, $txt;
Title: Re: Bug Subs-SimpleDeskProfile.php Undefined variable: sourcedir
Post by: SleePy on November 29, 2015, 02:07:57 PM
Fixed in commit 71ab0aa