Forum Replies Created
-
AuthorPosts
-
November 15, 2022 at 5:41 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372686
Thanks. That explains a lot. I had a person help me a few years ago that is not active anymore.
November 15, 2022 at 5:34 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372680The line says in function.php line 74
wp_register_script ( ‘gigla-custom’, ‘http://gigla.se/wp-content/themes/enfold-child/js/gigla-custom.js’, array(‘jquery’), $vn, true );
<?php
/* Child theme specific functions */
/* Added by Maria *//* PT Sans: already in theme; 400/regular, 700/bold + italic */
/* LOAD the following extra fonts:
PT Sans Narrow: 400/regular, 700/bold
PT Sans Caption: 400/regular. Not added: 700/bold.
NOTE: Caption will only be used in explanation or image text,
so it doesn’t need to be added to the styling panel.
PT Serif: 400/regular, 700/bold. There are also italic normal, italic bold
Serif can be used as paragraph font instead of sans */
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘chld_thm_cfg_ext1’, ‘https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700’ );
wp_enqueue_style( ‘chld_thm_cfg_ext2’, ‘https://fonts.googleapis.com/css?family=PT+Sans+Caption&display=swap’ );
wp_enqueue_style( ‘chld_thm_cfg_ext3’, ‘https://fonts.googleapis.com/css?family=PT+Serif:400,700’ );
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
/* add Narrow to the styling panel – heading fonts */
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow’;
return $fonts;
}
/* add Serif to the styling panel – content fonts */
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘PT Serif’] = ‘PT Serif’;
return $fonts;
}/* enable svg upload – use this only temporary, turn off after uploading */ /*
function cc_mime_types($mimes) {
$mimes[‘svg’] = ‘image/svg+xml’;
return $mimes;
}
add_filter(‘upload_mimes’, ‘cc_mime_types’);
*//* set to debug, useful to see shortcodes – use this only temporary */ /*
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}
*//* Remove title pop-ups from links and images */
function add_custom_tooltip(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘a’).removeAttr(‘title’);
jQuery(‘img’).removeAttr(‘title’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_tooltip’);/* Register a custom jquery file */
wp_register_script ( ‘gigla-custom’, ‘http://gigla.se/wp-content/themes/enfold-child/js/gigla-custom.js’, array(‘jquery’), $vn, true );
wp_enqueue_script ( ‘gigla-custom’ );November 15, 2022 at 5:18 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372675Thanks, what value should that line have?
Would it be solved if I would do a re-installation of the theme?Thanks,
Marvin
November 15, 2022 at 4:49 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372665How do I check this? Where, in what file is the line 74 and what should it say?
To me it just a big questionmark as I do not know code.
November 15, 2022 at 12:12 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372630I was in contact with Loopia (my webb hosting entity) and they asked me to change in the wp-config file, Debug to true in stead of false. In PHP 7,4 mode i got this information:
Notice: Undefined variable: vn in /www/webvol13/43/l8gbopo3ldp3k09/gigla.se/public_html/wp-content/themes/enfold-child/functions.php on line 74
Notice: Funktionen wp_register_script anropades felaktigt. Skript och stilmallar bör inte registreras eller läggas i kö innan någon av åtgärds-hookarna wp_enqueue_scripts, admin_enqueue_scripts och login_enqueue_scripts har körts. Denna notis utlöstes av hanteraren gigla-custom. Mer information finns i Felsökning i WordPress. (Detta meddelande lades till i version 3.3.0.) in /www/webvol13/43/l8gbopo3ldp3k09/gigla.se/public_html/wp-includes/functions.php on line 5835
Notice: Funktionen wp_enqueue_script anropades felaktigt. Skript och stilmallar bör inte registreras eller läggas i kö innan någon av åtgärds-hookarna wp_enqueue_scripts, admin_enqueue_scripts och login_enqueue_scripts har körts. Denna notis utlöstes av hanteraren gigla-custom. Mer information finns i Felsökning i WordPress. (Detta meddelande lades till i version 3.3.0.) in /www/webvol13/43/l8gbopo3ldp3k09/gigla.se/public_html/wp-includes/functions.php on line 5835
November 14, 2022 at 6:35 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372551I have now changed it back to 7,4 as I need to have the site online.
Thanks, MarvinNovember 14, 2022 at 4:37 pm in reply to: Not able to uppgrade to Apache 8.1 – My host is forcing everybody to uppgrade… #1372528No, where can I find them. I am a low tech person…
I have now updated the site to PHP 8.1 now. Please visit http://www.gigla.se and you see what happens.
Please let me know if you need me to get it back to 7.4
I have done that:
Thanks, Marvin
Hi
My host is uppgrading all users to PHP 8,1 and when I do this the site gives a “Not available”
I have de activated all plugins, all I have is WP and Enfold running (to my knowledge).Please help,
Marvin
-
AuthorPosts