- This topic has 9 replies, 2 voices, and was last updated 3 years, 11 months ago by Leo.
-
AuthorPosts
-
May 2, 2020 at 3:06 pm #1266790Michael
I am looking to create a child theme and get the following php errors when doing so:
Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 25 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 26 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 32 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 37 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 42 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 46 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 52 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 649 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 649 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 653 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 649 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 649 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 653 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 649 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 649 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 653 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/blog/functions/images.php on line 140 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/blog/functions/images.php on line 277 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 677 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 415 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/page-header.php on line 126 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 292 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/page-header/functions/functions.php on line 293 Notice: Trying to access array offset on value of type null in ...wp-content/plugins/gp-premium/blog/functions/images.php on line 277
May 2, 2020 at 3:12 pm #1266796LeoStaffCustomer SupportHi there,
Can you try using a default child theme from here?
https://docs.generatepress.com/article/using-child-theme/Let me know ๐
May 3, 2020 at 8:48 am #1267663MichaelThat is what I originally did. I get this error when trying to edit the header.php file and was trying to get around it.
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
May 3, 2020 at 9:46 am #1267771LeoStaffCustomer SupportSo you’ve added the
header.php
file in the child theme and trying to edit it?Sounds like the edit is causing the issue and not because of making the child theme?
May 3, 2020 at 2:03 pm #1267958MichaelCorrect. I can’t save it no matter what I edit.
May 3, 2020 at 4:10 pm #1268037LeoStaffCustomer SupportWhat exactly are you trying to edit?
The edit is causing the PHP error so you would need to double check your code/edit.
May 3, 2020 at 4:14 pm #1268039MichaelI am trying to edit header.php to add PHP to keep track of views per post using Advanced Custom Fields.
But I can’t edit header.php at all. I can’t even put a random space somewhere and save it.
May 3, 2020 at 4:17 pm #1268043LeoStaffCustomer SupportSounds like there is already an existing error.
Can you remove the existing one and add a fresh one instead?
https://github.com/tomusborne/generatepress/blob/master/header.phpMay 4, 2020 at 8:02 am #1269062MichaelI have an issue editing any of the PHP files in the WordPress dashboard. I just edited them offline and uploaded via file manager. That work around is good enough for now. Thanks for your help.
May 4, 2020 at 9:21 am #1269179LeoStaffCustomer SupportNo problem ๐
-
AuthorPosts
- You must be logged in to reply to this topic.