#2920 closed task (fixed)

www.osgeo.org (wordpress): saving of edits leads to critical error

Reported by: neteler Owned by: sac@…
Priority: normal Milestone: Sysadmin Contract 2023-II
Component: SysAdmin Keywords: wordpress
Cc:

Description

I tried to update the actinia page but after editing I got:

https://www.osgeo.org/wp-admin/post.php

There has been a critical error on this website. Please check your site admin email inbox for instructions.

Learn more about troubleshooting WordPress.

Change History (15)

comment:1 by robe, 21 months ago

Milestone: UnplannedSysadmin Contract 2023-I

comment:2 by robe, 21 months ago

What were you updating on actinia page? I just clicked update on actinia page and received no error. Also editing postgis page and got no error. I thought there was a log within wordpress that showed errors, but can't find it.

comment:3 by neteler, 21 months ago

I had updated various links (all github moved from github.com/mundialis/ ORG to github.com/actinia-org/ and others, too.

comment:4 by robe, 21 months ago

I was able to update the github links that had mundialis to actinia-org with no error. So perhaps some sort of permission issue or browser cache issue.

Can you clear out your browser cache and then try updating again.

comment:5 by neteler, 21 months ago

Thanks for having updated the links.

I eventually nailed it down:

Adding a new member under "Select members that are involved in this project." it leads to above error.

comment:6 by robe, 21 months ago

Still can't replicate. I added myself to the project and that completed fine, and then removed myself. Also fine. I did the same with PostGIS.

Maybe specific to the person you were adding?

comment:7 by robe, 19 months ago

@neteler are you still having this issue?

comment:8 by neteler, 17 months ago

I don't find the section "Select members that are involved in this project." any more for the actinia community project, so no idea how to edit that.

comment:9 by robe, 17 months ago

It's in the About section - "Who's involved". I thought it used to be a separate tab on it's own at one point, but I could be mistaken

comment:10 by neteler, 17 months ago

Resolution: fixed
Status: newclosed

Thanks, found it in the "About" tab.

And success, I was able to edit and save. Problem gone.

comment:11 by robe, 17 months ago

Milestone: Sysadmin Contract 2023-ISysadmin Contract 2023-II
Resolution: fixed
Status: closedreopened

As discussed with neteler offlist, he is still having an issue adding a specific user.

The error I am seeing in the log email is -

An error of type E_ERROR was caused in line 207 of the file /var/www/osgeo.org/httpdocs/wp-content/themes/roots/lib/custom.php. Error message: Uncaught Error: [] operator not supported for strings in /var/www/osgeo.org/httpdocs/wp-content/themes/roots/lib/custom.php:207
Stack trace:
#0 /var/www/osgeo.org/httpdocs/core/wp-includes/class-wp-hook.php(308): syncUsersForProject()
#1 /var/www/osgeo.org/httpdocs/core/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

Why it's only an issue for trying to add this specific user I'm not sure, but I think the code in our theme needs to be changed in our custom theme.

Vicky I'm reassigning to you since you have more experience with the php side of this.

comment:12 by cvvergara, 17 months ago

I could add my self, Who are we trying to add?

comment:13 by neteler, 17 months ago

I'll send the name off-trac to you.

comment:14 by cvvergara, 17 months ago

About adding the contributor to actinia:

Change on Project:

  • Who's involved: added the contributor

List of tests done

test 1

Change on profile:

  • Name: was blank -> added the name
  • After adding the contributor FAIL

test 2

Change on profile:

  • Project Contributor: -> added actinia
  • (with or without name)
  • After adding the contributor SUCCESS

Same problem on dev.

comment:15 by cvvergara, 12 months ago

Resolution: fixed
Status: reopenedclosed

Made the tests again, I did not have the problems. Maybe was solved when updating WordPress

Note: See TracTickets for help on using tickets.