Alina_T
October 26, 2017, 4:35pm
13
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
Vitaliy
October 26, 2017, 6:03pm
14
That happened in my case too. Take a look at this thread:
opened 09:40PM - 08 May 17 UTC
closed 09:15AM - 26 Oct 17 UTC
The upgrade script from OJS 2.x currently sets the `genre_id` to `1`, assuming t… hat this will be `SUBMISSION` default per `registry/genres.xml`. (See https://github.com/pkp/ojs/blob/ojs-3_0_2-0/dbscripts/xml/upgrade/3.0.0_update.xml#L92.)
This may not refer to a genre belonging to the right `context_id`, and assuming knowledge of autoincrement columns is brittle. Fix the upgrade to use `entry_key`, and if possible, find and correct bad data introduced by earlier upgrades.
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, 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
kawahyu
October 27, 2017, 12:04pm
16
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
Alina_T
October 27, 2017, 4:22pm
19
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
kawahyu
October 27, 2017, 10:40pm
21
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
kawahyu
October 27, 2017, 10:44pm
23
I got this notification when trying to install plugin gallery
@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
kawahyu
October 28, 2017, 1:41pm
25
Hi @israel.cefrin
The codes do not work. The keywords and references still there
anupent
October 28, 2017, 1:46pm
26
can you share the address of your website, I will try to make it hide.
@anupent
kawahyu
October 28, 2017, 1:48pm
27
Here it is http://antologimatematika.id/
It seems that the server is under maintenance. I cannot open it.
Thanks id advance
anupent
October 28, 2017, 2:48pm
28
Hi @kawahyu
Try with this CSS code.
div.item.keywords, div.item.references {
display: none;
}
Regards,
@anupent
kawahyu
October 28, 2017, 9:26pm
29
Thanks a lot @anupent
It works
@kawahyu , @asmecher Yes! Upgrade php from 5.4 to 5.6 resolved trouble. Thx!
kawahyu
November 3, 2017, 8:53pm
31
The code cannot benused for bootstrap theme. Any ideas to hide reference using bootstrap?
http://ulumuna.or.id
anupent
November 3, 2017, 9:00pm
32
hi @kawahyu ,
Can you try this one:
section.article-more-details div.article-references {
display: none;
}