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

Damon:  I decided to try and install simpleForum on another of my systems to see if it may be an OS issue.  I therefore installed everything on a Google Cloud Ubuntu 14 VM.

This time no problem with the installation, no errors as described above, everything seems to work fine except....

When I create a new post, it generates the following error:

MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version 
for the right syntax to use near '-accounts WHERE num = 2' at line 1 - in simpleForum.php on line 417 by mysql_get_query()

It only occurs when i wan to post a reply or create a new thread.

P.S.  The record does get created and is viewable on the website & in CMSB.

Any ideas?

Ragi

--
northernpenguin
Northern Penguin Technologies

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

That's great!

Thanks Greg!

--
northernpenguin
Northern Penguin Technologies

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