Waqas Bin Hasan
Forum Replies Created
-
I have tried with PHP Code mode also, but still no luck and it returns with same Host Build Interrupt page. However, Error Message now states:
OK
The server encountered an internal error or misconfiguration and was unable to complete your request.While, in the logs, there’s no error stated.
On the other hand, using
mysqldump
mode, always states:
mysqldump: Got error: 2002: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) when trying to connectIn Apache Logs, I have:
[Mon Apr 23 10:52:01 2018] [error] [client ::1] FastCGI: comm with server “/Applications/MAMP/fcgi-bin/php7.1.8.fcgi” aborted: idle timeout (30 sec), referer: https://qa/wp-admin/admin.php?page=duplicator&tab=new3
[Mon Apr 23 10:52:01 2018] [error] [client ::1] Handler for fastcgi-script returned invalid result code 1, referer: https://qa/wp-admin/admin.php?page=duplicator&tab=new3
sh: /mysqldump: No such file or directory
sh: /mysqldump: No such file or directoryI am confused here and have 2 questions:
1) When Duplicator says in Settings -> Packages that:
Successfully Found: /usr/local/mysql/bin/mysqldumpWhy it is trying
/mysqldump
rather than/usr/local/mysql/bin/mysqldump
?2) Why it can’t connect to MySQL? Shouldn’t it use the same database configuration as found in
wp-config.php
file? Which I guess it does, since it shows to include/exclude the tables during package creation.Thanky Cory, I tried to figure out the logs, but I’ll look again and ‘ll let you know for any possible clue.
Thanks again.
These are as followings:
Allowed Runtime: 0:01
PHP Max Execution Time: 3600 (default)
Mode: is dynamic
Server Status: 200 -OK
Error Message:
DUPLICATOR ERROR: Please see the ‘Package Log’ file link below.I have tried
PHP Max Execution Time
with0
also, to allow it for unlimited execution time, without any luck.You would also want to look into single.php for the following line:
twentyfourteen_post_nav();
You can do the same conditional test for this line as well.
Note: Above code and idea is relevant to Twenty Fourteen theme. You may better check your theme documentation for appropriate page/post navigation functions and template files. Some themes can define their own methods, but apparently idea is the same.
You need to build a Parent/Child relationship between your posts and then you are able to link Artists to Festivals or vice-versa.
On the other hand, you can consider one of the posts as Categories (if just want to act as a grouping matter) and can handle like that.
However, I will suggest to take a look at the following articles from Types Users Guide:
– https://wp-types.com/documentation/user-guides/creating-post-type-relationships/
– https://wp-types.com/documentation/user-guides/many-to-many-post-relationship/
– https://wp-types.com/documentation/user-guides/creating-groups-of-repeating-fields-using-fields-tables/This matter is already under consideration and is in communication with the Toolset Support Staff. I will suggest to consider looking at https://wp-types.com/forums/topic/integration-with-amazon-s3-and-cloudfront/
Are you having this issue in Word Press Admin area or on search feature available at front-end of your site?
Also can you check your CPT/Taxonomy settings, if it’s publicly searchable? There are few settings related to this, which you can opt-in/out to make your CPT/Taxonomy include/exclude from public searches.
You will need to modify your post archive template. This is usually archive.php. In this file your can comment out or modify the code to display/hide pagination.
In TwentyFourteen Theme, you can find following line in your archive.php and can comment out, to disable paging altogether:
twentyfourteen_paging_nav();
change it like:
//twentyfourteen_paging_nav();
However, if you want to disable this for your particular post type, you can change that line with followings:
if(get_post_type(get_the_ID()) != "my-cpt") { twentyfourteen_paging_nav(); }
Remember to replace “my-cpt” with the correct slug of your CPT.
Usually you can relate different CPTs to each other in Types by specifying Parent/Child relationship. But to relate a particular post with another post, there’s a concept of hierarchical posts. You can also setup your CPT to be hierarchical in the Types.
I will suggest to take a look at these articles from Types Users Guide:
– https://wp-types.com/documentation/user-guides/creating-post-type-relationships/
– https://wp-types.com/documentation/user-guides/many-to-many-post-relationship/
– https://wp-types.com/documentation/user-guides/creating-groups-of-repeating-fields-using-fields-tables/
– https://wp-types.com/documentation/user-guides/display-fields-table-content-using-views-or-the-types-api/Apparently, you can uncheck the URL validation on the field, just to keep your work on.
On the other hand, can you please mention which version of Types. Since it works fine with 1.6.4 and accepts above kind of URLs.
What do you mean by “actual” custom field? i.e. post_parent or something else.
However the field post_parent is used by WordPress to store hierarchical custom post types (like pages). Where a page can be a parent of another page and so on. This type of relation happens between posts of the same type.
Types plugin, on the other hand, provides a different relationship that can be made between 2 different post types. We store this in a custom field in the child post.
For example, if we have parent “Companies” and child “Employees”, all employees will have a custom field with the key ‘_wpcf_belongs_company_id’ pointing to the parent company.
This may be due to the limit in PHP for handling maximum input vars. I will suggest to take a look at https://wp-types.com/faq/why-do-i-get-a-500-server-error-when-editing-a-view/ for a solution. It may help.