Skip Navigation

[Resuelto] clicking to edit an intermediary post I get a blank page

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

in newly created sub-site with types etc imported from main site, when clicking to edit an intermediary post I get a blank page still....

Solution:

This is an exception of the client website, see the solution here:
https://toolset.com/forums/topic/clicking-to-edit-an-intermediary-post-i-get-a-blank-page/#post-1112143

Relevant Documentation:

This support ticket is created hace 6 años, 2 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Etiquetado: 

Este tema contiene 10 respuestas, tiene 2 mensajes.

Última actualización por ScottM9386 hace 6 años, 2 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1111243

NO - issue is NOT resolved.
in newly created sub-site with types etc imported from main site, when clicking to edit an intermediary post I get a blank page still....

though I can get to the intermediary custom post fields now to edit them - toolset>relationship>etc.....

#1111244

Hello,

This is abnormal, there should be some PHP errors in your website, and it conducts the problem:

when clicking to edit an intermediary post I get a blank page still.

Please try these:
1) Make sure you are using all latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

3) Enable PHP debug mode, copy/paste the PHP debug logs here

#1111257

I deactivated all plugins except types and went to 2017 theme - still the same problem.
how do I Enable PHP debug mode?
I don't know why there should be any PHP problems in my site (that's what you said last time and it ended up being a bug in toolset - remember?)
This is a FRESH multi-site install...the same kind of thing was happening in the previous install.
Please help - this is getting extremely frustrating - I can't move on with my project until this issue is resolved.

WP Engine has error logs - is this helpful?
here they are:

[Tue Sep 18 20:05:10.333599 2018] [:error] [pid 30880] [client 207.38.244.42:53847] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67
[Tue Sep 18 20:05:10.333678 2018] [:error] [pid 30880] [client 207.38.244.42:53847] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72
[Tue Sep 18 20:05:10.373431 2018] [:error] [pid 30880] [client 207.38.244.42:53847] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67
[Tue Sep 18 20:05:10.373494 2018] [:error] [pid 30880] [client 207.38.244.42:53847] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72
[Tue Sep 18 20:05:10.392664 2018] [:error] [pid 30880] [client 207.38.244.42:53847] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67
[Tue Sep 18 20:05:10.392729 2018] [:error] [pid 30880] [client 207.38.244.42:53847] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72
[Tue Sep 18 20:48:49.648835 2018] [:error] [pid 16856] [client 207.38.244.42:12525] PHP Fatal error: Call to a member function get_slug() on null in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/post/intermediary/view/PostEdit.php on line 170, referer: enlace oculto
[Tue Sep 18 20:49:33.768839 2018] [:error] [pid 19610] [client 207.38.244.42:13475] PHP Fatal error: Call to a member function get_slug() on null in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/post/intermediary/view/PostEdit.php on line 170, referer: enlace oculto
[Tue Sep 18 20:50:28.115679 2018] [:error] [pid 29920] [client 207.38.244.42:14515] PHP Fatal error: Call to a member function get_slug() on null in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/post/intermediary/view/PostEdit.php on line 170, referer: enlace oculto
[Tue Sep 18 22:00:46.435692 2018] [:error] [pid 18621] [client 207.38.244.42:32690] PHP Fatal error: Call to a member function get_slug() on null in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/post/intermediary/view/PostEdit.php on line 170, referer: enlace oculto
[Tue Sep 18 22:10:03.219318 2018] [:error] [pid 13259] [client 207.38.244.42:15754] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67, referer: enlace oculto
[Tue Sep 18 22:10:03.219378 2018] [:error] [pid 13259] [client 207.38.244.42:15754] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72, referer: enlace oculto
[Tue Sep 18 22:10:03.253747 2018] [:error] [pid 13865] [client 207.38.244.42:15809] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67, referer: enlace oculto
[Tue Sep 18 22:10:03.253829 2018] [:error] [pid 13865] [client 207.38.244.42:15809] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72, referer: enlace oculto
[Tue Sep 18 22:12:19.720780 2018] [:error] [pid 5092] [client 207.38.244.42:18297] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67, referer: enlace oculto
[Tue Sep 18 22:12:19.720855 2018] [:error] [pid 5092] [client 207.38.244.42:18297] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72, referer: enlace oculto
[Tue Sep 18 22:12:46.749166 2018] [:error] [pid 31615] [client 207.38.244.42:18824] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67, referer: enlace oculto
[Tue Sep 18 22:12:46.749241 2018] [:error] [pid 31615] [client 207.38.244.42:18824] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72, referer: enlace oculto
[Tue Sep 18 22:12:48.364523 2018] [:error] [pid 14222] [client 207.38.244.42:18857] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67, referer: enlace oculto
[Tue Sep 18 22:12:48.364605 2018] [:error] [pid 14222] [client 207.38.244.42:18857] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72, referer: enlace oculto
[Tue Sep 18 22:14:41.664249 2018] [:error] [pid 32583] [client 207.38.244.42:20317] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67
[Tue Sep 18 22:14:41.664344 2018] [:error] [pid 32583] [client 207.38.244.42:20317] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72
[Tue Sep 18 22:14:41.685567 2018] [:error] [pid 32583] [client 207.38.244.42:20317] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67
[Tue Sep 18 22:14:41.685678 2018] [:error] [pid 32583] [client 207.38.244.42:20317] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72
[Tue Sep 18 22:14:41.692174 2018] [:error] [pid 32583] [client 207.38.244.42:20317] PHP Warning: preg_match() expects parameter 2 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 67
[Tue Sep 18 22:14:41.692235 2018] [:error] [pid 32583] [client 207.38.244.42:20317] PHP Warning: strtotime() expects parameter 1 to be string, array given in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/field/type/date/date.php on line 72
[Wed Sep 19 02:53:48.949926 2018] [:error] [pid 506] [client 207.38.244.42:56650] PHP Fatal error: Call to a member function get_slug() on null in /nas/content/live/trackcatalog2/wp-content/plugins/types/application/models/post/intermediary/view/PostEdit.php on line 170, referer: enlace oculto

#1111258
Capture.JPG

and also PLEASE DON'T forget the other thing I mentioned - after the update - in the main site the related posts won't load in the post editor.
tracks-clients many2many

see image---
it just stays as you see in image - trying to load.

#1111330

Thanks for the details, I can get the your website credentials in previous thread:
https://toolset.com/forums/topic/not-resolved-cant-access-intermediary-post-field-groups-in-many2many-http500/#post-1105272

Will update here if there is anything found

#1111437

I can duplicate the problem, I get PHP error in my localhost:
Call to a member function get_slug() on null

And have escalated this thread, will update here if there is anything news.

#1111657

Hi Luo,

I appreciate all the help - but please don't install the "duplicator" plugin - it's a disallowed plugin with WPengine.

Thank you.
Scott.

#1112143

Dear Scott,

Sorry, in order to duplicate the same problem , I have to install duplicator plugin in your website to get the database dump file, you can remove that plugin anytime.

Here is the feedback from our 2nd tier supporters:

There are many relationships with the same intermediary post type.

The relationship that causes the issue is (private-front-public-front-page). it's a one to many relationships. it shouldn't have an intermediary post type but it has.

Please try to run below SQL query in your database with some mysql tools, for example PHPmyadmin, it solves the issue for me.

UPDATE wp_2_toolset_relationships SET intermediary_type = '' WHERE wp_toolset_relationships .slug = 'track-client'

"wp_2_" is the database table pre-fix of the sub website enlace oculto

Please help us to know how this happened:
How did this issue happen? does this happen only when he imports the data through Toolset Import/Export or it happened when he upgraded to 3.1?

#1112420

Hi Luo,

I understand about duplicator plugin - it's just I get a warning from WPengine when it's installed.
Please let me know in advance if you need to install it again as I need to contact them in advance.

I appreciate all the efforts, but this is getting really exhausting for me, as I'm sure it is for you as well.

I don't understand "There are many relationships with the same intermediary post type."
what do they mean "many"?
In the sub-site - where all this problem occurs - I only have THREE relationships:
Private Frontend Front Page
Tracks Albums
Tracks Clients

I have NO idea how this ("many relationships with the same intermediary post type" ) happened, or why "private-front-public-front-page has an intermediary post type"
Creating an intermediary post type in a one to many is NOT EVEN POSSIBLE when one creates that relationship!

All I did was:
1. Create a multi-site
2. create the basic elements of my site using toolset (post types, relationships, views, etc) on the main site.
3. create a sub-site
4. export types, views etc from the main site to the sub-site.

That's it.

Did you compare the main site with the sub-site?
I believe on the main site these issues DO NOT EXIST.
so clearly something is going wrong with the export/import function.

I have no idea how to "run SQL query in database" to solve issue.
I'm more inclined to just build the elements I need on the sub-site from scratch and not deal AT ALL with the export function..
(maybe just import the custom fields and views - hopefully that won't create problems!)

Thanks,
Regards,
Scott.

#1112694

Q1) what do they mean "many"?
That means in your database, table "wp_2_toolset_relationships", there are many records are using same value "track-client" in column "intermediary_type"

Q2) I have no idea how to "run SQL query in database" to solve issue.
To fix this problem, we need to fix the problem in your website database, I need you permission to install a plugin to run the sql query, for example:
https://wordpress.org/plugins/run-sql-query/

Please backup your website, and update this thread when your website is ready for debug.

#1113906

My issue is resolved now. Thank you!