SMF Forum Setting Unable To Find

aussieholden - June 15, 2007 - 16:34
Project:SMFforum Integration module
Version:5.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I followed the instructions but I get errors and I think it's trying to look else where for "smf_api_2.php"

I get the following :-

Successfully locating SMF installation.
Error locating /home/aussieh/public_html/forum1smf_api_2.php. Please fix your settings!
Unable to connect to the SMF database. Please fix your settings!

"smf_api_2.php" is not located in the forum directory it's located here :-

/home/modules/smfforum/includes/smf_api_2/

So whats going wrong here guys ???

#1

aussieholden - August 14, 2007 - 05:44

Thanks for any help given NOT

#2

Suede Pudding - August 14, 2007 - 06:21

What are your SMF location settings set to in admin/settings/smfforum?

#3

aussieholden - August 14, 2007 - 13:01

It's already fixed hence my last reply so A little too late.

#4

Steel Rat - September 11, 2007 - 16:21

Aussie, instead of being so snippy, how about letting the rest of us know ho you fixed it, since I'm getting the same problem.

#5

Steel Rat - September 11, 2007 - 16:27

FYI, I have the same errors as originally reported:

Successfully locating SMF installation.
Error locating smf/smf_api_2.php. Please fix your settings!
Unable to connect to the SMF database. Please fix your settings!

my settings are as follows:

SMFForum root: smf
Path to SMF api file: /modules/smfforum/includes (this is the default value)
SMF api file name: /smf_api_2.php (also the default value.)

The errors seem to expect smf_api_2.php to be in the smf folder, and not under modules/smfforum/includes, where the instructions tell you to put it. I tried placing a copy where it tells me it can't find it, and it still can't find it....

#6

Suede Pudding - September 11, 2007 - 17:22

Could you try this...
Make a new folder in your smf installation called smfdrupalAPI or something similar. Copy the contents of the includes folder to that directory
Now try changing
Path to SMF api file: /modules/smfforum/includes to.. /smf/smfdrupalAPI

#7

Steel Rat - September 11, 2007 - 17:44

the API has its own folder as well, so copying from the original zip made it /smf_api_2/smf_api_2.php. Should I do away with the folder it had originally and put the .php files into the folder you're proposing?

#8

Steel Rat - September 11, 2007 - 18:03

Ok, it's working now, here's what I had to do.

Created a folder under the SMF installation called drupalSMFapi.
Placed just the files from the smf_api_2 folder in the new folder.
changed Path to SMF api file to smf/drupalSMFapi.

Now it's happy.

The installation instructions really need some help. And the defaults need to be done away with since they don't work.

#9

Suede Pudding - September 11, 2007 - 19:00

Glad it worked out for ya... Not sure why it picked the wrong folder at first..maybe it has something to do with where you put the forum root? I am not looking at the code so thats a total guess...

As far as docs go...
The programmer is russian..so his english is not the best. I did see in another issue that another user is starting to refine the instructions...

#10

Steel Rat - September 11, 2007 - 19:14

The leading "/" on the path to API was also messing it up. the default leads one to believe it needs to be there.

The part in the docs where it says to login to you SMF install as admin, then go to admin>modules>... Clearly that should say login to Drupal (not SMF) as admin, since there is no modules section in SMF.

I'd gladly re-write the docs for him, but the problems aren't language, but accuracy. Like not accounting for the API package having a sub-folder, and the above, thus the api file will never be found with the current instructions.

#11

andrewpeacock - September 14, 2007 - 08:47

I think the isssue with the install instructions is not one of language.

ie,
Step 4: Unpack smf_api_2 archive and copy it to subdirectory .../modules/smfforum/includes/

Yet the SMF config is looking for smf_api_2.php in the path specified in the 'SMFforum root' setting, which is described as 'Path to forum directory. Enter the full directory path where SMF is installed.' (my emphasis).

I'm now unsure where to go. Will post the resolution here once I get it working.

Andy

#12

vb - September 17, 2007 - 06:32

Download latest http://vgb.org.ru/files/smf_api_2.zip (content zipped without subdirectory smf_api_2) and unzip it to .../modules/smfforum/includes/

#13

Steel Rat - September 17, 2007 - 14:59

Andrewpeacock, see my post #8 above. the "Path to SMF api file" is the significant field, and it doesn't want a leading /, though this may depending on your path setup.

#14

vb - September 17, 2007 - 17:29

I always use /smf_api_2.php with leading /
and path to forum without trailing /
/home/aussieh/public_html/forum

New dev version now should suggest you (if this field is blank)
/home/aussieh/public_html/smf
and you only need to change smf to forum in your case

I'd recommend to download new version. It has automatic path suggestion feature.

#15

Steel Rat - September 22, 2007 - 02:21

VB, I think you're misunderstanding what I'm saying. The "Path to api" is the one that doesn't want a leading /.

Example, an smfforum I setup yesterday has these settings:

SMFforum root: smf
Path to SMF api file: modules/smfforum/includes/smf_api_2 (will not work with leading /, tried with 2 different installations)
SMF api file name: /smf_api_2.php

The error message if the second item isn't right is also wrong, it will use the path in the first field as the error message, not the path in the second field where the problem is.

#16

vb - September 22, 2007 - 06:29

I think you're misunderstanding what I'm saying. The "Path to api" is the one that doesn't want a leading /.

Sorry, agree.
See my post #12, i link to repacked version of http://vgb.org.ru/files/smf_api_2.zip without subdirectory /smf_api_2

In new dev version i suggest path to api as

$smfinc = $drupal_get_path('module', 'smfforum') . '/includes';

it gives
sites/all/modules/smfforum/includes
or
modules/smfforum/includes
without leading /

smf_api_2.php and all smf_api_2.zip should goes direct to
modules/smfforum/includes
(modules/smfforum/includes/smf_api_2.php)

I cannot place smf_api_2 in drupal CVS because non-GPL license of SMF

Thanks for help.

#17

Steel Rat - September 22, 2007 - 12:51

Ok, that makes more sense, didn't know about the license issue.

#18

sudomaster - January 18, 2008 - 17:15
Category:support request» bug report
Assigned to:aussieholden» Anonymous

Has someone actually fixed this? I have followed the included readme, the instructions above, etc, and when I do I get taken to the update drupal screen. It would be nice to have an implementation of this that actually works according to the instructions. Is anyone working on this????????

#19

Steel Rat - January 18, 2008 - 17:18

It's working for me. Post your settings here and I'll see if I can help.

If you want to see it in use go to http://rpgmapshare.com/smfforum

#20

enthusaroo - May 22, 2008 - 02:31

Thanks Steel Rat for your info

#21

aussieholden - August 12, 2008 - 14:34
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.