Skip Navigation

[Resolved] custom post type displaying 404

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Noman 6 years, 7 months ago.

Assisted by: Noman.

Author
Posts
#570194

I am trying to: view a custom post type

Link to a page where the issue can be seen: hidden link

I expected to see: some content

Instead, I got: a 404

#570242

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Steve,

Thank you for reaching out to us. I can see that you are using older version of Toolset plugins (Types, Views, Access, Cred, Map, etc ). Please update ALL Toolset plugins to it latest official release. Or you can download it from your account:
https://toolset.com/account/downloads/

- If issue still persists, please try to check it by deactivating all third-party plugins (except Toolset) and switching back to the Default Theme (e.g. Twenty Sixteen theme) to see for any possible conflicts with any of the plugins or themes.

Thank you

#570593

Hi Norman,

I've updated all WP-Types plugins to the latest version, deactivated all non-WP-Types plugins, and switched to Twenty Seventeen, and the issue remains.

I set the permalink structure to /%category%/%postname% and the issue remains.

This is .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=noabort:1]
RewriteRule .* - [E=noconntimeout:1]
</IfModule>

Help appreciated.

Regards,
Steve

#570917

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Steve,

I have checked your site and see the error messages when tried to update any Custom post:

Notice: unserialize(): Error at offset 1042 of 2202 bytes in /var/www/vhosts/1/141766/webspace/httpdocs/wp-content/plugins/types/application/models/helper/condition/views/views_exist.php on line 28

We have another client who had the similar issue and was also able to solve it (summary at top):
https://toolset.com/forums/topic/unserialize-error-at-offset/

Thank you

#571637

Hi Norman,

How was the issue solved?

There are a lot of posts about troubleshooting, but no firm solution posted.

Regards,
Steve

#571684

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Steve,

You need to go through the database and correct the character counts for the affected URLs.

As mentioned in the summary of above ticket: It is best not to modify serialized data in the database manually. If you must do this, ensure that all serialized strings containing URLs were converted properly. If the number of characters in a migrated URL string do not match the number of characters in the original URL string, serialization errors may occur.

1. Have you migrated or moved site from one server to another? If yes, then please make sure that site is migrated properly. I would highly recommend to move your site using one of the below trusted plugins:
- https://wordpress.org/plugins/duplicator/ -- highly recommended
- https://wordpress.org/plugins/updraftplus/
- https://wordpress.org/plugins/all-in-one-wp-migration/

2. OR I suggest you to please try to create a new Test site, install Toolset plugins and see how it works.

Thank you

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.