Ojs 3.1 upgrade issue

Hi there,

We are trying to upgrade from 3.0.2 directly to 3.1 and we got this error:

PHP Fatal error: Call to a member function getId() on null in classes/install/Upgrade.inc.php on line 2476

We also tried to install it all over again, but that error keeps showing up.
What does it mean? What can we do to resolve this?

Thank you in advance.

Best regards,
Alina

That happened in my case too. Take a look at this thread:

Were you able to solve this problem?
I have this problem too:
[Fri Oct 27 11:46:15.071277 2017] [:error] [pid 16969] [client] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Container.php on line 149, referer: http://domain.name/submissions
[Fri Oct 27 11:46:15.075818 2017] [:error] [pid 16990] [client] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Container.php on line 149, referer: http://domain.name/submissions
[Fri Oct 27 11:46:15.080675 2017] [:error] [pid 16860] [client] PHP Parse error: syntax error, ojsunexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Container.php on line 149, referer: http://domain.name/submissions

Not yet. Do u have same issue?

Yes. Gif-animation above from my ojs installation. Made today.

Hi all,

What version of PHP is your server running?

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher,

Our version of PHP is 5.6.

Best regards,
Alina

@Alina_T, the resolution to the issue you encountered is posted above.

My question about the PHP version relates to @Pavel_Shvarc’s question.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @Pavel_Shvarc @asmecher
I have changed the php version to 5.6 (formerly 5.4), the problem resolved

Hi @kawahyu,

Great – OJS 3.1 requires PHP5.6. (The .tar.gz claims to require PHP5.5 but we’ve since discovered that one of the built-in libraries requires 5.6.)

Regards,
Alec Smecher
Public Knowledge Project Team

I got this notification when trying to install plugin gallery

image

@asmecher

Hi @kawahyu,

This isn’t related to the thread – can you post different questions as new topics, including all relevant information?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @israel.cefrin
The codes do not work. The keywords and references still there

can you share the address of your website, I will try to make it hide.

@anupent

Here it is http://antologimatematika.id/
It seems that the server is under maintenance. I cannot open it.

Thanks id advance

Hi @kawahyu

Try with this CSS code.

div.item.keywords, div.item.references {
  display: none;
}

Regards,
@anupent

Thanks a lot @anupent
It works

@kawahyu, @asmecher Yes! Upgrade php from 5.4 to 5.6 resolved trouble. Thx!

The code cannot benused for bootstrap theme. Any ideas to hide reference using bootstrap?
http://ulumuna.or.id

hi @kawahyu,

Can you try this one:

section.article-more-details div.article-references {
	display: none;
}