Viewing 15 replies - 16 through 30 (of 44 total)
  • How about going into the WP file editor (under Appearance). This is in the WP Admin on your host, not your local computer. On the righthand side it should list Theme Files with files in your child theme; functions.php, style.css, maybe others if you’ve created them. Open the functions.php file and take a look at it. Is it the same as what’s on your local machine that you posted above?

    Thread Starter domesticgood

    (@domesticgood)

    When I post the updated code to functions.php, I am not able to login through the admin panel, so I’m not sure how to check if they match at that point.

    I replaced functions.php with original, checked the file via the editor and it was reverted back to the original. I then added the code to the functions.php directly and got the error again.

    When you say “I am not able to login through the admin panel” do you mean you can’t log on to the WP Admin on your host to check your live site? But then you said “I then added the code to the functions.php directly”. Logged on to your live site WP Admin? I’m trying to understand which files you’re editing and where they’re coming from and where they’re going.

    Thread Starter domesticgood

    (@domesticgood)

    When I loaded the updated functions.php via FTP, I am not able to log on to the WP admin to check the site live.

    So then I reverted to original functions.php via FTP and once back into to admin panel, I updated the file through the editor and also received the error and not able to access admin panel.

    I’m still not clear where your “WP Admin” is. You say “I am not able to log on to the WP admin to check the site live” but then “once back into to admin panel, I updated the file”. I don’t understand how you cannot log on to the WP Admin to check your live site, but you can go “back into the admin panel”, make a change and have it take your site offline.

    So, what happens if you go into the editor and delete everything in functions.php, then save it. Does your site come back up? If not, to get your site going again you’d best FTP the original functions.php file back. Then, as a test, in the functions.php that has the code, put // in front of the first “load_theme_textdomain” line (that’s the line the compiler is complaining about) to make it a comment, then FTP it up to your site. If there’s still an error then my guess is there’s something going on with your host.

    Hey domesticgood. Late here; need to signoff for now. Will be back in the AM.

    Thread Starter domesticgood

    (@domesticgood)

    Ok, so here’s what I loaded via FTP and I still get the error:

    <?php
    /* ------------------------------------------------------------------------- *
     *  Custom functions
    /* ------------------------------------------------------------------------- */
    function alx_load() {
                    // Load theme languages
                    // load_theme_textdomain( 'hueman', get_template_directory().'/languages' );
    
                    // Load theme options and meta boxes
                    load_template( get_template_directory() . '/functions/theme-options.php' );
                    load_template( get_template_directory() . '/functions/meta-boxes.php' );
    
                    // Load custom widgets
                    load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );
                    load_template( get_template_directory() . '/functions/widgets/alx-video.php' );
                    load_template( get_stylesheet_directory() . '/functions/widgets/alx-posts.php' );
    
                    // Load custom shortcodes
                    load_template( get_template_directory() . '/functions/shortcodes.php' );
    
                    // Load dynamic styles
                    load_template( get_template_directory() . '/functions/dynamic-styles.php' );
    
                    // Load TGM plugin activation
                    load_template( get_template_directory() . '/functions/class-tgm-plugin-activation.php' );
            }

    So this might have something to do with my host? What should I tell them to look into?

    Thread Starter domesticgood

    (@domesticgood)

    Here’s the error: Parse error: syntax error, unexpected ‘&’ in /home/blogdo7/public_html/wp-content/themes/hueman-child-master 2/functions.php on line 10

    It seems that it’s issue with the code has moved to line 10 since // were added to line 7

    So that indicates, to me anyway, that it’s not the function code but probably something to do with the host compiler. Do you know what version of PHP your host is running?

    Thread Starter domesticgood

    (@domesticgood)

    My cpanel indicates that I’m running PHP 5.4. I have the option to use any one of 5.2 – 5.6

    How about folder and/or file permissions on your child theme folder and the functions.php file? Can you check those?

    Thread Starter domesticgood

    (@domesticgood)

    Sorry, I’m not sure how to do that. Can you walk me through it?

    Thread Starter domesticgood

    (@domesticgood)

    I was able to check the permission on functions.php … iowner has read and write permissions checked … execute and SUID are unchecked

    I just checked one of my sites. The functions.php file is set to read/write, and the child theme folder is set to read/write/execute. I’m not sure any of this is related to the problem; just trying to cover the possible causes.

    Thread Starter domesticgood

    (@domesticgood)

    I couldn’t figure out how to check the permission on the theme folder.

Viewing 15 replies - 16 through 30 (of 44 total)
  • The topic ‘Video embeds in AlxPosts widget’ is closed to new replies.