SimpleForum not so simple!

8 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 4, 2016   (RSS)

Ok, this is a bit weird.  I have followed the instructions in SimpleForum and am having problems.

I am using the latest version of CMSB 3.03, Websitemembership 1.11 and SimpleForum 1.0.

I get as far as trying out /forumFiles/ and get the following error:

Couldn't load viewer library, check filepath in _forum-init.php.

I checked the file and found the following:

  // load viewer library
  $libraryPath = 'lib/viewer_functions.php';
  $dirsToCheck = array('','cmsb/','cmsAdmin/','../cmsb/','../../cmsb/','../../../cmsb/','../../../../cmsb/','../cmsAdmin/','../../cmsAdmin/','../../../cmsAdmin/','../../../../cmsAdmin/');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in _forum-init.php."); }

My file path is:

/home/sandbox/public_html/706sandbox/builder

I tried changing the _forum-init.php filepath, but no success.  I also decided to create the /forum directory and add the /forumFiles/ as described.  No joy!

Any ideas?

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Damon - April 1, 2016

Hi Ragi,

Have you tried changing it like the file path in the _forum-init.php file like this:

  // load viewer library
  $libraryPath = 'lib/viewer_functions.php';
  $dirsToCheck = array('','builder/','cmsAdmin/','../builder/','../../builder/','../../../builder/','../../../../builder/','../cmsAdmin/','../../cmsAdmin/','../../../cmsAdmin/','../../../../cmsAdmin/');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in _forum-init.php."); }

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Yes, I have and I get the same error. 

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Damon - April 1, 2016

OK, can you send in a Support Request and I can look into it and send you an update:

https://www.interactivetools.com/support/email_support_form.php?priority=free

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Done!

Thank you

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By gregThomas - April 4, 2016

Hi Ragi, 

I've resolved this issue in the build of Simple Forum that you sent us FTP details for. The issue was caused by an unescaped table name in the function sforum_db_getForumAdminEmails.

I'm going to release a new version of the simple forum plugin later today with a fix for this issue in. 

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

That's great!

Thanks Greg!

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke