Jump to content
TNG Community

solved / SOSA mod - parse error


pipsi

Recommended Posts

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

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

Michel KIRSCH

... and ...

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

:-)

Michel

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

Michel KIRSCH

Noooo ! Don't !

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

 

Link to comment
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

Link to comment
Share on other sites

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

Link to comment
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

Link to comment
Share on other sites

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

Link to comment
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

Link to comment
Share on other sites

@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

Link to comment
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

Link to comment
Share on other sites

  • pipsi changed the title to solved / SOSA mod - parse error

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...