1
lintu
Problem viewing documents on Document management System (DMS)
  • 2009/10/20 17:09

  • lintu

  • Not too shy to talk

  • Posts: 103

  • Since: 2005/9/18


Hello Experts,

I'm using XOOPS 2.3.3 and DMS 1.9 versions. I uploaded a document as the admin and gave the registered users group view permission to this document. When I log back in as a registered user and navigate to this module's main page, I don't see this document listed (just show's item: empty). In debug mode I found the following error:

Notice: Undefined variable: disp_start in file /modules/dms/inc_main_ui_2.php line 933

Any idea, why this might be happening?

Thanks in advance for your help.

Regards,
Abu

2
ghia
Re: Problem viewing documents on Document management System (DMS)
  • 2009/10/20 23:20

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


That place has following code:
le="color: #000000"><?php $query = folder_query($active_folder,$dms_var_cache['doc_alpha_sort']); $result = $dmsdb->query($query); $sifted_results = results_sifter($result); page_navigation($sifted_results,$disp_start); display_table_header(); list_folders($active_folder); list_documents($active_folder); $disp_start = $dms_var_cache['doc_display_start']; if($dms_var_cache['doc_display_start'] > $sifted_results['num_docs']) { $disp_start = 0; $dms_var_cache['doc_display_start'] = 0; }
The error is at the page_navigation function call. It uses $disp_start, which is defined a few lines later.
Weird! It is maybe a bug. I should expect (and you may try):
le="color: #000000"><?php $query = folder_query($active_folder,$dms_var_cache['doc_alpha_sort']); $result = $dmsdb->query($query); $sifted_results = results_sifter($result); $disp_start = $dms_var_cache['doc_display_start']; if($dms_var_cache['doc_display_start'] > $sifted_results['num_docs']) { $disp_start = 0; $dms_var_cache['doc_display_start'] = 0; } page_navigation($sifted_results,$disp_start); display_table_header(); list_folders($active_folder); list_documents($active_folder);

3
lintu
Re: Problem viewing documents on Document management System (DMS)
  • 2009/10/21 1:27

  • lintu

  • Not too shy to talk

  • Posts: 103

  • Since: 2005/9/18


Hello ghia,

Thanks a lot for your help. The change you suggested, got rid of the error on inc_main_ui_2.php, but the documents are still not being displayed to the intended users.

I noticed there are errors in other areas of this module. This version (1.91) of DMS is full of bugs and not fit for production.

Regards,
Abu

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits