Custom-styles.php Error and theme-functions.php Error

This topic has 18 replies, 4 voices, and was last updated 5 years, 4 months ago ago by Rose Tyler

  • Avatar: bluehiveinteractive
    BHI
    Participant
    November 19, 2018 at 19:48

    Since updating to 5.1.1 of the theme I’ve been getting these 2 errors repeating over and over in the PHP ERROR_LOG file for WordPress My error log file got up to 51MB in size

    [19-Nov-2018 18:43:07 UTC] PHP Warning:  Illegal string offset 'id' in /home/amishyard/public_html/wp-content/themes/xstore/theme/custom-styles.php on line 20
    
    [19-Nov-2018 18:43:07 UTC] PHP Warning:  Illegal string offset 'id' in /home/amishyard/public_html/wp-content/themes/xstore/framework/theme-functions.php on line 128
    Please, contact administrator
    for this information.
    17 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 20, 2018 at 08:09

    Hello,

    Please provide temporary wp-admin and FTP access.

    Regards

    Avatar: bluehiveinteractive
    BHI
    Participant
    November 20, 2018 at 09:06

    Here is the login in the private section

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 20, 2018 at 17:54

    Hello,

    Thank you. We have passed your issue to our developers and inform you once we fix the problem.

    Regards

    Avatar: thisisbolo
    thisisbolo
    Participant
    December 9, 2018 at 07:41

    Hi @olgabarlow

    I’m running into same error:

    [09-Dec-2018 06:17:18 UTC] PHP Notice:  Uninitialized string offset: 0 in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 17
    [09-Dec-2018 06:17:18 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 19
    [09-Dec-2018 06:17:18 UTC] PHP Notice:  Uninitialized string offset: 0 in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 19
    [09-Dec-2018 06:17:18 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 20
    [09-Dec-2018 06:17:18 UTC] PHP Notice:  Uninitialized string offset: 0 in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 20

    Any update on when this issue will be resolved?

    Avatar: thisisbolo
    thisisbolo
    Participant
    December 10, 2018 at 15:51

    Here’s another set. It also includes footer.php

    [10-Dec-2018 13:24:01 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/footer.php on line 3
    [10-Dec-2018 13:29:09 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 16
    [10-Dec-2018 13:29:09 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 17
    [10-Dec-2018 13:29:09 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 19
    [10-Dec-2018 13:29:09 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/theme/custom-styles.php on line 20
    [10-Dec-2018 13:29:09 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/framework/theme-functions.php on line 129
    [10-Dec-2018 13:29:09 UTC] PHP Warning:  Illegal string offset 'id' in /public_html/wp-content/themes/xstore/footer.php on line 3
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 11, 2018 at 09:37

    Hello,

    https://prnt.sc/ltf5z4 – please increase max execution time https://xstore.helpscoutdocs.com/article/60-xstore-theme-requirements
    Also, contact your hosting provider and make sure that get_query_var() and set_query_var() functions are enabled on your server.

    Regards

    Avatar: thisisbolo
    thisisbolo
    Participant
    December 11, 2018 at 15:44

    Hi @bluehiveinteractive – did you figure this out? I’m getting the same errors and have my max execution time set to 6000.

    @rosetyler Not sure about the ‘get_query_var()’ and ‘set_query_var()’ functions. Running on GoDaddy hosting. Where do we find this in cPanel?

    Avatar: bluehiveinteractive
    BHI
    Participant
    December 11, 2018 at 16:29

    No I did not. I have my max execution time set to 500 in php.ini

    As for get_query_var() and set_query_var() those are wordpress functions to pull info in and out of the database that has nothing to do with your hosting provider. They are core WordPress functions. I don’t see how the host has any control over that. Simply installing WordPress includes both functions since they are not PHP core functions, but as I said, WordPress core functions.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 11, 2018 at 16:57

    Hello @bluehiveinteractive,

    Please check one more time https://prnt.sc/ltlyah https://prnt.sc/ltlyzq

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 11, 2018 at 17:06

    Hello @thisisbolo,

    Please ask hosting provider support about mentioned functions.
    Let us know the result.

    Regards

    Avatar: bluehiveinteractive
    BHI
    Participant
    December 11, 2018 at 19:55

    I am not sure where you got that screen shot from, but I have max_execution_time = 500 in php.ini file and its also being reported in the link.

    You can also view the screen shot here at https://www.dropbox.com/s/h66d15ez3qhzh08/2018-12-11%20at%201.52%20PM.jpeg?dl=0

    Please contact administrator
    for this information.
    Avatar: bluehiveinteractive
    BHI
    Participant
    December 11, 2018 at 20:26

    I see now where you got that screen shot in the theme Dashboard. I just spoke with our dedicated server provider and they confirmed what I shared in my previous screen shots. Our server is setup with a max_execution_time of 500

    Further more they also confirmed that get_query_var() and set_query_var() are not PHP server level settings that can be turned on or turned off. They are core wordpress functions which you cannot turn off. Its part of the software.

    We have another site on our server also running XStore theme. In the Dashboard theme settings it correctly shows max_execution_time = 500 so the screenshot you shared showing zero must be something wrong with the way the version of the theme installed on that site is pulling the data from the PHP server settings. The local php.ini and global php.ini on the server have a value of 500 set for max_execution_time

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 12, 2018 at 17:08

    Hello @bluehiveinteractive,

    Please check now. Let us know if all fine.

    Regards

    Avatar: bluehiveinteractive
    BHI
    Participant
    December 12, 2018 at 21:13

    Hello, I have checked the system requirements for the theme in the dashboard and its still reporting 0

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 13, 2018 at 09:27

    Hello @bluehiveinteractive,

    Please check if you have the mentioned PHP notices. We’ve made some changes in files to fix this.

    Regards

    Avatar: thisisbolo
    thisisbolo
    Participant
    December 21, 2018 at 19:03

    @rosetyler – I’ve been following this thread. Are the changes made going to be released in a theme update?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 24, 2018 at 09:40

    Hello @thisisbolo,

    Thanks for the question. Yes, we plan to add appropriate changes in the next theme update.

    Regards

  • Viewing 18 results - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.