Jump to content
TNG Community
pipsi

solved / SOSA mod - parse error

Recommended Posts

pipsi

due to this error (see att) I have uninstalled the mod.
at "drop table and delete varse" I got the same error.
after restoring all backup files my page works again.

maybe it's because I haven't registered as SOSA#1 yet?

when and where should I do that? sorry for this stupid question!
many thanks for the help

sosa.PNG

sosa3.PNG

sosa2.PNG

Share this post


Link to post
Share on other sites
Michel KIRSCH

Hi Pipsi,

Never have this case...

this line 198  :     $sosaMax = 2**$bits_system;

makes the maximum sosa number equal to 2 exposant $bits_system

This $bits_system comes from the value given in the sosa_vars.php file and = 64 by default.

This value can be changed by edit in the mod manager.

Questions :

Do you change this value?

on which system are you working?

Did you try to reload the mod?

Pleas verify that this line 198 is like $sosaMax = 2**$bits_system; (with 2 '*')

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH

... For your questions about sosa 1 :

Once the mod installed, go to the person you want to designate as sosa1

In the new sosa menu, click "Designate as sosa 1" (above right)

Wait the program is finished. That's all

Michel

 

Capture.GIF

Share this post


Link to post
Share on other sites
Michel KIRSCH

... and ...

there is no stupid questions, only stupid answers... (A.Einstein)

:-)

Michel

Share this post


Link to post
Share on other sites
pipsi

@Michel KIRSCH

I didn't change anything  - the line 198 looks like that - see att.

I'll change

$sosaMax = 2**$bits_system;  // 31 or 63

to

$sosaMax = 2**$bits_system; (with 2 '*') // 31 or 63

 

have a good evening!
Ingrid

sosa.PNG

Share this post


Link to post
Share on other sites
Michel KIRSCH

Noooo ! Don't !

with 2 '*' was just a remark of me. NOT PHP code !!

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

Ingrid,

Everything seems to be OK in the code.

My  questions stay :

on which system are you working?

Did you try to reload the mod?

 

Michel

Share this post


Link to post
Share on other sites
pipsi

Michel,

I'll relaod the mod.

Do you mean TNG Version? It's v12.0.2

following mods are installed

and I have already a 4th pull down menu
- see atts


Ingrid

mods.PNG

sosa.PNG

Share this post


Link to post
Share on other sites
Michel KIRSCH

Ingrid,

No I mean on which PC are you working? With Windows? linux?

You say that you have the 4th pulldown menu. No problem for sosa, it installs in your 4th menu if it exists yet.

Sorry, but I don't see what's wrong...

Do you try to reinstall sosa? I don't see it in your list of mods...

Tomorrow, I'll load your mods and see if it's a problem with one of them.

I use yet some of your mods... But normally, this have nothing to do with the "mystery of line 198"

Have a good night !

Michel

Share this post


Link to post
Share on other sites
pipsi

Good morning from Vienna!

I'm working with Windows 10.

thank you very much for your efforts - I will install it again tomorrow, today are Christmas shopping announced 😉
Ingrid

Share this post


Link to post
Share on other sites
Michel KIRSCH

Ingrid,

I think that teh problem comes from your internet provider

the  '**' operator is valid since PHP 5.6

if your internet provider runs PHP beyond version 5.6, it raises an error.

May be you must make a change on your operator's dashboard to change the PHP version you run (see image for provider one.com)

Please replace the litigious line 198 in the tng_sosa.php file :

     $sosaMax = 2**$bits_system;

by this one

    $sosaMax = pow(2,$bits_system);

and say me what's append...

If you experience any problem to make this line change, i'll send you a new (modified) zip file.

Michel

Capture.JPG

Share this post


Link to post
Share on other sites
pipsi

@Michel KIRSCH

I changed the PHP Version to 5.6

Should I still change 

line 198 in the tng_sosa.php file from

     $sosaMax = 2**$bits_system;

to

    $sosaMax = pow(2,$bits_system);

and if yes - before I'll upload the whole sosa mod package via FTP to TNG mod folder?


THANK you so much for your help!
Ingrid

phpv.PNG

Share this post


Link to post
Share on other sites
Michel KIRSCH

Ingrid,

Normally, if you change your PHP version,

it is not necessaty to change tue line code.

It must be OK.

 

Michel

Share this post


Link to post
Share on other sites
pipsi

@Michel KIRSCH

THANK YOU for your time and help - SOSA works 🤗

Special greetings from Vienna - a Sachertorte à la Sacher 😉

have a good rest of Sunday!

Ingrid

Sachertorte.PNG

Share this post


Link to post
Share on other sites
Michel KIRSCH

Danke shön Ingrid,

Ich liebe schocolade...

Michel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×