/    Sign up×
Community /Pin to ProfileBookmark

Php 7 problem

I am usuing worpress and when i updated my php from 5 to 7 i can not add new post any more.
I alywas get this error.
any help?

[code=php]
Fatal error: Uncaught Error: Function name must be a string in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php:168 Stack trace: #0 /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php(323): TF_INTERFACE->meta_box_row_template(Array) #1 /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php(339): TF_INTERFACE->get_meta_box_options(‘post’) #2 /homepages/41/d250712094/htdocs/cocukistan/wp-includes/plugin.php(524): TF_INTERFACE->create_meta_box(‘post’) #3 /homepages/41/d250712094/htdocs/cocukistan/wp-admin/edit-form-advanced.php(323): do_action(‘add_meta_boxes’, ‘post’, Object(WP_Post)) #4 /homepages/41/d250712094/htdocs/cocukistan/wp-admin/post-new.php(85): include(‘/homepages/41/d…’) #5 {main} thrown in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php on line 168[/code]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 01.2016 — Adding some line-breaks for readability:
<i>
</i>Fatal error: Uncaught Error: Function name must be a string in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php:168
Stack trace:
#0 /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php(323): TF_INTERFACE-&gt;meta_box_row_template(Array)
#1 /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php(339): TF_INTERFACE-&gt;get_meta_box_options('post')
#2 /homepages/41/d250712094/htdocs/cocukistan/wp-includes/plugin.php(524): TF_INTERFACE-&gt;create_meta_box('post')
#3 /homepages/41/d250712094/htdocs/cocukistan/wp-admin/edit-form-advanced.php(323): do_action('add_meta_boxes', 'post', Object(WP_Post))
#4 /homepages/41/d250712094/htdocs/cocukistan/wp-admin/post-new.php(85): include('/homepages/41/d...')
#5 {main} thrown in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php on line 168


So the problem is in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php at line 168. While we might be able to figure out why you get the error if you showed us the code in that file around that line number, the person who could most easily resolve it would likely be the theme creator. For that matter, have you made sure you have the latest version of that theme installed? (Or is it even still being supported?)
Copy linkTweet thisAlerts:
@biologusauthorNov 01.2016 — Adding some line-breaks for readability:
<i>
</i>Fatal error: Uncaught Error: Function name must be a string in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php:168
Stack trace:
#0 /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php(323): TF_INTERFACE-&gt;meta_box_row_template(Array)
#1 /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php(339): TF_INTERFACE-&gt;get_meta_box_options('post')
#2 /homepages/41/d250712094/htdocs/cocukistan/wp-includes/plugin.php(524): TF_INTERFACE-&gt;create_meta_box('post')
#3 /homepages/41/d250712094/htdocs/cocukistan/wp-admin/edit-form-advanced.php(323): do_action('add_meta_boxes', 'post', Object(WP_Post))
#4 /homepages/41/d250712094/htdocs/cocukistan/wp-admin/post-new.php(85): include('/homepages/41/d...')
#5 {main} thrown in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php on line 168


So the problem is in /homepages/41/d250712094/htdocs/cocukistan/wp-content/themes/kiddo-turf-parent/framework/core/INTERFACE.php at line 168. While we might be able to figure out why you get the error if you showed us the code in that file around that line number, the person who could most easily resolve it would likely be the theme creator. For that matter, have you made sure you have the latest version of that theme installed? (Or is it even still being supported?)[/QUOTE]




here is the line 168

[code=php]$out .= $this->optigen->$row['type']($row);[/code]
Copy linkTweet thisAlerts:
@NogDogNov 01.2016 — So most likely at that point $row['type'] is null or an empty string. So you need to find out where that gets set, and work back from there to find out why it isn't. In other words, because it's empty/not-set, it's trying to call a method with no name, which would be invalid:
[code=php]
$out .= $this->optigen->($row);
[/code]
×

Success!

Help @biologus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...