{"id":1633482,"date":"2018-09-28T13:16:56","date_gmt":"2018-09-28T20:16:56","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/"},"modified":"2018-09-28T13:16:56","modified_gmt":"2018-09-28T20:16:56","slug":"fatal-php-error-class-not-public","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/","title":{"rendered":"Fatal PHP Error, Class not Public"},"content":{"rendered":"<p>I am updating the Tickets Plus plugin, and as soon as I do I receive the following error:<\/p>\n<p>PHP Fatal error:  Access level to Tribe__Tickets_Plus__Tickets::login_required() must be public (as in class Tribe__Tickets__Tickets) in home1\/bythebo2\/public_html\/eola\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Tickets.php on line 133<\/p>\n<p>I am using a custom theme, and I asked the developer and here is the response I got:<\/p>\n<p>Based on that error message, that appears to be a bug in the Tribe Tickets Plus plugin &#8211; they are forming their classes improperly. (For reference, check out https:\/\/stackoverflow.com\/questions\/11183190\/access-level-to-certain-class-must-be-public-error-in-php ). From that error log, I can&#8217;t tell what the parent class is for that, so I can&#8217;t tell you without access to the files what upstream could be triggering that, but I&#8217;d definitely suggest reaching out to that plugin author, since that code would be out of your or my control. There definitely isn&#8217;t anything in the theme that is doing out of the ordinary lifting, or messing around with global classes. <\/p>\n<p>Now when I switch to the twenty seventeen theme, the new plugin works &#8211; so I guess the info I need is: what class needs the permission? How is this fixed? I am happy to give you any access to the site to figure it out. Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1633482","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fatal PHP Error, Class not Public -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fatal PHP Error, Class not Public -\" \/>\n<meta property=\"og:description\" content=\"I am updating the Tickets Plus plugin, and as soon as I do I receive the following error: PHP Fatal error: Access level to Tribe__Tickets_Plus__Tickets::login_required() must be public (as in class Tribe__Tickets__Tickets) in home1\/bythebo2\/public_html\/eola\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Tickets.php on line 133 I am using a custom theme, and I asked the developer and here is the response I got: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/\",\"name\":\"Fatal PHP Error, Class not Public -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-09-28T20:16:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Fatal PHP Error, Class not Public\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fatal PHP Error, Class not Public -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/","og_locale":"en_US","og_type":"article","og_title":"Fatal PHP Error, Class not Public -","og_description":"I am updating the Tickets Plus plugin, and as soon as I do I receive the following error: PHP Fatal error: Access level to Tribe__Tickets_Plus__Tickets::login_required() must be public (as in class Tribe__Tickets__Tickets) in home1\/bythebo2\/public_html\/eola\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Tickets.php on line 133 I am using a custom theme, and I asked the developer and here is the response I got: [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/","name":"Fatal PHP Error, Class not Public -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-09-28T20:16:56+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-php-error-class-not-public\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Fatal PHP Error, Class not Public"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1633482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1633482\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1633482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}