Okay
  Public Ticket #1414432
Error with hundreds of accommodations
Closed

Comments

  •  1
    rmonkalot started the conversation

    Hi!

    I have been building Book Your Travel theme for my site. I have done some customization to the theme by using child theme (except some of the php files do not work in child theme, such as includes/theme_utils.php). 

    Everything went fine until I moved several hundreds of accommodations to wp database (not to mentions thousands of those I need to update). Up to 500 accommodations (approximately) were working fine but beyond this the page reported an error like the code would not work at all (php syntax error).

    Is there a known limit of the amount of accommodations? Is there a way how an accommodation should be correctly specified in wp_posmeta fields (meta_key-meta_value) to handle thousands of them? I have inserted accommodations by using custom php-script to add needed information (meta_key - meta_value pairs) in wp_postmeta -table (addition to wp_post table). Also updated some tags to wp_term_relationships table.

    I have been working quite much to get this site working for me. This looks great and handy theme and would not want stop now when everything is almost done.. I have got good support so far.

    Thanks for advises!

    Best regards, Risto-Matti

  •  2,057
    Theme replied

    Hello,

    a syntax error is most often caused by using the incorrect transfer mode when transferring php files via FTP.

    To prevent this in the future, you must always upload php files in Binary transfer mode (any code files, not just our theme).

    To fix this, if for example using FileZilla, please go to Transfers > Transfer Mode > select Binary and then upload all files again.

    Thank you

    Best regards,

    themeenergy support

  •  1
    rmonkalot replied

    Thanks for the answer!


    The transfer mode has, I've noticed, important role. In this case all the editing has been made locally and transfer mode is by default binary (and cannot even be changed in SFTP connection). So this is not the issue. I want to emphasize that the error is caused by adding more accommodation data, not editing any php. Data of the first about 500 accommodations works fine as you can see in the https://www.yllaksenonkalot.fi/kaikkimokit/


    Best regards,

    Risto-Matti

  •  2,057
    Theme replied

    Hi,

    Accommodations are custom WordPress post types. There are no limitations within our theme or within WordPress on how many posts you can create or use.

    Please share the syntax error you get so we can ascertain what the issue is.

    Thanks,

    Best regards,

    themeenergy support

  •  1
    rmonkalot replied

    Hi!

    I also thought that there was no limitations. But in  practice in the link the pages works now. When I add some 300-400 accommodations there is an error when browsing the pages (like there was a syntax error in php and nothing works). Otherwise it is hard to present this error. I wonder what could be different to execute scripts with only few accommodations and really with many of them..

    In the other words there is no link or button or function that I could tell you to try it to work or not to work. It depends on how many accommodations are brought into the database. The error is "HTTP ERROR 500", nothing else when trying to browse. I can see no error log generated.

    Cheers, Risto-Matti

  •  1
    rmonkalot replied

    Hi!

    Could you advise me to set error reporting so that I would get decent information what is going on.


    Cheers, Risto-Matti

  •  2,057
    Theme replied

    Hi,

    Please set your WP_DEBUG to true in wp-config.php and then reload the page that shows a syntax error and provide it here so we can give you feedback.

    You will find more information about debugging your WordPress installation here:

    https://codex.wordpress.org/Debugging_in_WordPress

    Best regards,

    themeenergy support

  •  1
    rmonkalot replied

    Hello!

    Thanks for the instructions. I noticed I had already set debug to true but could not find the log file (looking for "error" file or similar). Now I did and I have it here. Something with memory handling in wp-dp.php.

    Cheers, Risto-Matti

  •  1
    rmonkalot replied

    Hi!

    I did some research and narrowed down the cause of the problem. I have a plugin, Autocomplete post search, and when deactivating this, the pages start to work. On the other hand when activating it back, the error comes back again. Now I have to ask from the plugin's support for further information.

    Cheers, Risto-Matti

  •  2,057
    Theme replied

    Awesome, thank you very much for letting us know.

    Best regards,

    themeenergy support