These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

TEA (v1.3.1) - Member Management Mod for SMF 2, TeamSpeak 3 and Jabber

Author
Charlinda Akheteru
Akheteru Integrated Astrometrics
#441 - 2015-10-04 06:24:17 UTC
Running SMF 2.0.11, have a custom pages mod installed as well as a customized theme. Attempting to install TEA first resulted in the error about how Packages or a file in the directry is unwritable. I created a temp folder and CHMOD'd everything to 777, and upon clicking Install Mod I got a long list of .xml files with the message Modification Parse Error - as well as the entire SMF install throwing a 500 error.

I haven't seen anyone post a similar experience, but if I'm doing something wrong I sure can't figure out what exactly it is.

Any ideas? I'd really like to be able to employ this mod in my SMF install, but it's looking like a lost cause...
Princess Morenta
Republic Military School
Minmatar Republic
#442 - 2015-10-04 23:27:20 UTC
Charlinda Akheteru wrote:
Running SMF 2.0.11, have a custom pages mod installed as well as a customized theme. Attempting to install TEA first resulted in the error about how Packages or a file in the directry is unwritable. I created a temp folder and CHMOD'd everything to 777, and upon clicking Install Mod I got a long list of .xml files with the message Modification Parse Error - as well as the entire SMF install throwing a 500 error.

I haven't seen anyone post a similar experience, but if I'm doing something wrong I sure can't figure out what exactly it is.

Any ideas? I'd really like to be able to employ this mod in my SMF install, but it's looking like a lost cause...


It would appear that the mods/theme you are using have modified files that the mod does and it cannot apply the changes to the files.

Try applying TEA before applying the mods or modify the code that TEA looks for to match your modified version.
Princess Morenta
Republic Military School
Minmatar Republic
#443 - 2015-10-04 23:28:50 UTC
Raven ThyKnight wrote:
One of the support techs found this:

Hi!
Everyone who appears when you run Simple Machine Forum white page, see this post!

Problem:
You tried installing Simple Machines Forum software (SMF) either from the source website or using Sentastico, but it shows as a blank page when you try to access it. No issues are seen in the ZpanelX or Sentora Error Log and all other configurations appear to be correct.

Solution :
This issue is caused by suhosin security module which blocks the PHP function shell_exec() from being used. However, SMF appears to call this function in the Sources/Subs.php file, around line 3538 (line 3737 on version 2.0.11):

// Try the Linux host command, perhaps?

if (!isset($host) && (strpos(strtolower(PHP_OS), ‘win’) === false || strpos(strtolower(PHP_OS), ‘darwin’) !== false) && mt_rand(0, 1) == 1)
{
if (!isset($modSettings[‘host_to_dis’]))
$test = @shell_exec(‘host -W 1 ‘ . @escapeshellarg($ip));
else
$test = @shell_exec(‘host ‘ . @escapeshellarg($ip));
// Did host say it didn’t find anything?
if (strpos($test, ‘not found’) !== false)
$host = ”;
// Invalid server option?
elseif ((strpos($test, ‘invalid option’) || strpos($test, ‘Invalid query name 1′)) && !isset($modSettings[‘host_to_dis’]))
updateSettings(array(‘host_to_dis’ => 1));
// Maybe it found something, after all?
elseif (preg_match(‘~\s([^\s]+?)\.\s~’, $test, $match) == 1)
$host = $match[1];
}

This code block should be commented out by adding PHP comment tags :

// Try the Linux host command, perhaps?

/* if (!isset($host) && (strpos(strtolower(PHP_OS), ‘win’) === false || strpos(strtolower(PHP_OS), ‘darwin’) !== false) && mt_rand(0, 1) == 1)
{
if (!isset($modSettings[‘host_to_dis’]))
$test = @shell_exec(‘host -W 1 ‘ . @escapeshellarg($ip));
else
$test = @shell_exec(‘host ‘ . @escapeshellarg($ip));
// Did host say it didn’t find anything?
if (strpos($test, ‘not found’) !== false)
$host = ”;
// Invalid server option?
elseif ((strpos($test, ‘invalid option’) || strpos($test, ‘Invalid query name 1′)) && !isset($modSettings[‘host_to_dis’]))
updateSettings(array(‘host_to_dis’ => 1));
// Maybe it found something, after all?
elseif (preg_match(‘~\s([^\s]+?)\.\s~’, $test, $match) == 1)
$host = $match[1];
} */

This will fix the issue and allow SMF to work properly. The function is not necessary for the normal operation of the script, as other means are available to SMF to accomplish the same thing.

Source: http://www.supportpro.com/blog/2013/09/smf-forum-showing-blank-screen-not-working/


and this is working for me so far!


Using the scream module for PHP or viewing the Suhosin logs would have identified this :)
Charlinda Akheteru
Akheteru Integrated Astrometrics
#444 - 2015-10-10 20:15:46 UTC  |  Edited by: Charlinda Akheteru
Princess Morenta wrote:
Charlinda Akheteru wrote:
Running SMF 2.0.11, have a custom pages mod installed as well as a customized theme. Attempting to install TEA first resulted in the error about how Packages or a file in the directry is unwritable. I created a temp folder and CHMOD'd everything to 777, and upon clicking Install Mod I got a long list of .xml files with the message Modification Parse Error - as well as the entire SMF install throwing a 500 error.

I haven't seen anyone post a similar experience, but if I'm doing something wrong I sure can't figure out what exactly it is.

Any ideas? I'd really like to be able to employ this mod in my SMF install, but it's looking like a lost cause...


It would appear that the mods/theme you are using have modified files that the mod does and it cannot apply the changes to the files.

Try applying TEA before applying the mods or modify the code that TEA looks for to match your modified version.

Attempting to do everything manually, n what directory should add_schedule.php, add_settings.php and del_schedule.php end up? Or, if attempting to install manually, are these things I should be manually doing as well...?

EDIT: I think I answered my own question there.

Now, since the automated installation wasn't working out, I searched through the mod_ files as best I could to try and figure out what the other mod had changed that would interfere... nothing stood out. So I took the time and manually modified all of the files that the package manager would, manually replaced all of the files via FTP and added the files/dirs that needed to be added.. All i's seemingly dotted, all t's seemingly crossed. Threw a tiny syntax error on me, found and fixed it... everything seems as if it should be working fine.

Not a sign of TEA in the admin panel or anywhere else.

There's obviously something else I was supposed to have done... anybody wanna take a guess at what I missed?

EDIT: In modify profile, I've found Temar's in the dropdown. When I go there, it says Temar's is disabled... however, it does not appear at all in the admin area for me to enable it.
Princess Morenta
Republic Military School
Minmatar Republic
#445 - 2015-10-12 22:07:30 UTC
Quote:
EDIT: In modify profile, I've found Temar's in the dropdown. When I go there, it says Temar's is disabled... however, it does not appear at all in the admin area for me to enable it.


Attempting to do everything manually, n what directory should add_schedule.php, add_settings.php and del_schedule.php end up? Or, if attempting to install manually, are these things I should be manually doing as well...?[/quote]

Did you hit the add_ files manually?

As per the files:

Quote:

/*******************************************************************************
This is a simplified script to add settings into SMF.
ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)
================================================================================
Princess Morenta
Republic Military School
Minmatar Republic
#446 - 2015-10-12 22:08:41 UTC
Princess Morenta wrote:
Quote:
EDIT: In modify profile, I've found Temar's in the dropdown. When I go there, it says Temar's is disabled... however, it does not appear at all in the admin area for me to enable it.


Attempting to do everything manually, n what directory should add_schedule.php, add_settings.php and del_schedule.php end up? Or, if attempting to install manually, are these things I should be manually doing as well...?


Did you hit the add_ files manually?

As per the files:

Quote:

/*******************************************************************************
This is a simplified script to add settings into SMF.
ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)
================================================================================


Also admin panel should appear by adding the modifications from mod_admin.xml
Charlinda Akheteru
Akheteru Integrated Astrometrics
#447 - 2015-10-17 07:26:35 UTC  |  Edited by: Charlinda Akheteru
Yes, I went navigated directly to the add_ files as well as the esam one (I assumed it needed to be hit upon since it went to the same directory). All mod_ changes were made and I've checked via hitting view/edit in my FTP client to see if those changes kept or if the file replacement action somehow didn't take. As far as I can tell, all of the edits are in place, no syntax errors.

I just noticed another spot Temar's shows up - the link it adds to the footer, with the copyright info and such.

EDIT:
It just occured to me to check and see if the db tables were created - logged into phpmyadmin and sure enough, all the tea tables are there - just (obviously) empty as no data has been entered via Temar's mod yet.

EDIT 2: Is add_settings supposed to edit SSI.php? Because it seems to have not done so. If this is the case, it may be that I have to manually edit SSI.php as well...
Norian Lonark
Center for Advanced Studies
Gallente Federation
#448 - 2015-10-17 11:01:39 UTC
Hi All,

I seem to have developed an issue where rules based on titles are not updating correctly. This has been working fine and I updated the rowset (awhile back) when had this issue with ccp changing the API. But now its very odd.

Just wondered if anyone else is having any issues with title based rules?

Start wide, expand further, and never look back

Charlinda Akheteru
Akheteru Integrated Astrometrics
#449 - 2015-10-17 20:13:38 UTC  |  Edited by: Charlinda Akheteru
Finally fount the issue, now the mod is enabled and working!

Attempted to have it pull my avatar from eve, got this error:

The database value you're trying to insert does not exist: p_avatar

Hoped it would be common enough that the fix would be found easily in the thread... no such luck. Am poring over all the modified files now to see if there's some other little problem I missed, but if anyone knows the fix for this and wants to save me some time, I'd be grateful!

EDIT: Regarding rules, do I understand correctly that the rules defined in this image will mean that the forum checks API, finds that the user is in our corp and assigns them Usergroup 'Peddler' and if the user also has Mining Frigate level 1 then they will also be assigned Usergroup 'Prospector'? Is that correct?
Mike Vandenberg
School of Applied Knowledge
Caldari State
#450 - 2015-10-18 23:07:56 UTC
Charlinda Akheteru wrote:
Finally fount the issue, now the mod is enabled and working!

Attempted to have it pull my avatar from eve, got this error:

The database value you're trying to insert does not exist: p_avatar

Hoped it would be common enough that the fix would be found easily in the thread... no such luck. Am poring over all the modified files now to see if there's some other little problem I missed, but if anyone knows the fix for this and wants to save me some time, I'd be grateful!

EDIT: Regarding rules, do I understand correctly that the rules defined in this image will mean that the forum checks API, finds that the user is in our corp and assigns them Usergroup 'Peddler' and if the user also has Mining Frigate level 1 then they will also be assigned Usergroup 'Prospector'? Is that correct?



From a rule/group perspective. your Main group rule, any one account should only fall into one rule. So you'd maybe to do a corp/alliance rule, maybe do an invalid, maybe do a red rule, maybe do a blue rule. Everything else should probably fall under additional. Also, you'd probably want to make any rule to include your corp info. The way you have it now, anyone could sign up on your forum and as long as they have mining frigate, they would get the group, even if they have nothing to do with your corp. Not sure if that was what you were looking for...
Norian Lonark
Center for Advanced Studies
Gallente Federation
#451 - 2015-10-19 20:58:42 UTC
Hey All,

my issue seems to be that the eve tea isnt updating at all. Everything seems to be working ok when I click update a profile, or run checks but no status changes are happening with any of my rules. I tried clearing the tea_smf_cache table and then tried to run the cronjob again it seems to run but nothing is in the cache table and no changes happen?

I dont seem to be getting any visible errors and just wondered if any guru has any ideas?

Thanks.

Nori.

Start wide, expand further, and never look back

Norian Lonark
Center for Advanced Studies
Gallente Federation
#452 - 2015-10-19 21:53:40 UTC
Norian Lonark wrote:
Hey All,

my issue seems to be that the eve tea isnt updating at all. Everything seems to be working ok when I click update a profile, or run checks but no status changes are happening with any of my rules. I tried clearing the tea_smf_cache table and then tried to run the cronjob again it seems to run but nothing is in the cache table and no changes happen?

I dont seem to be getting any visible errors and just wondered if any guru has any ideas?

Thanks.

Nori.


I resolved the issue by deleting the cache again.. then when running the checks had an error for one of the API ids, I deleted this user from the api table and tried again then everything worked.

Just posting here if it helps anyone else in future.

Cheers,

Nori.

Start wide, expand further, and never look back

Norian Lonark
Center for Advanced Studies
Gallente Federation
#453 - 2015-11-19 15:09:12 UTC
Hi All,

I still seem to be having a problem where I keep having to manually clear the tea SMF cache. The Teacron job is running ok but I still have to clear the cache manually before changes take effect?

Anyone any ideas?

Thanks,

Nori.

Start wide, expand further, and never look back

Mike Vandenberg
School of Applied Knowledge
Caldari State
#454 - 2015-11-21 06:33:18 UTC  |  Edited by: Mike Vandenberg
Norian Lonark wrote:
Hi All,

I still seem to be having a problem where I keep having to manually clear the tea SMF cache. The Teacron job is running ok but I still have to clear the cache manually before changes take effect?

Anyone any ideas?

Thanks,

Nori.

What changed from your post over a month ago? Did it just recently stop working or had it never really been working? Also, when did you first install your instance (is this something you've been using for a while and just broke or something you never got working in the first place)?

Also, what changes specifically aren't taking effect? Is this only related to titles that you meantioned a few posts back or more global?