Jump to content


Module name changing causes broken link in phreebook

  • Please log in to reply
1 reply to this topic

#1 dishadcruze

  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 11 January 2017 - 03:08 PM

I am working as freelancer and have gotten a project to customize a opensource called phreebooks for a client. My client wants to rename 3 modules such as phreebook, phreeform and phreedom as finance, report and company.  I am successfully done with the two modules phreebook to finance and phreedom to company. But after changing phreeform module to report, the print option is not working. 


Here is the screenshot of the pop-up page where the print option comes.  If you have seen phreebooks earlier, there should be a tab 'Criteria' which is missing after renamed the module.


Attached File  err.PNG   52.72KB   0 downloads


In error log it says : Company: phree RUN-TIME WARNING: 'Creating default object from empty value' line 51 in file F:\wamp\www\phree\modules\report\pages\popup_gen\pre_process.php

 if (isset($_GET['xfld'])) { // check for extra filters
      if (isset($_GET['xfld']))  $report->xfilterlist[0]->fieldname = $_GET['xfld'];  
      if (isset($_GET['xcr']))  $report->xfilterlist[0]->default   = $_GET['xcr'];
      if (isset($_GET['xmin'])) $report->xfilterlist[0]->min_val   = $_GET['xmin']; 
     if (isset($_GET['xmax']))  $report->xfilterlist[0]->max_val = $_GET['xmax']; // line no 51 

I am not getting what went wrong and where. I mean what may be the missing links here? Can somebody help me out?

#2 Destramic

  • Members
  • PipPipPip
  • Advanced Member
  • 913 posts
  • LocationUnited Kingdom

Posted 11 January 2017 - 03:22 PM

Check $_GET['xmax'] value as i would say it's empty

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users