Title: function bosa_excerpt declared
Last modified: March 24, 2023

---

# function bosa_excerpt declared

 *  Resolved [daspooma](https://wordpress.org/support/users/daspooma/)
 * (@daspooma)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-bosa_excerpt-declared-2/)
 * My website could not be loaded. I activated the logging and got the following
   error
 * **Deprecated**: Optional parameter $new_length declared before required parameter
   $more_text is implicitly treated as a required parameter in **/var/www/vhosts/
   mms-hochzeit.ch/httpdocs/wp-content/themes/bosa/functions.php** on line **415**
 * I changed the variables so $echo and $more_text are before the variable $new_length.
   This helped me for this error. Now I got another error
 * **Deprecated**: Creation of dynamic property Bosa_Notice_Handler::$theme_name
   is deprecated in **/var/www/vhosts/mms-hochzeit.ch/httpdocs/wp-content/themes/
   bosa/inc/getting-started/getting-started.php** on line **45**
 * I changed the Line from $this theme_name = exc_attr ( $theme->get(‘Name’ ) );
   to $theme_name = esc_attr ( $theme->get( ‘Name’ ) ); so the error is now solved.
 * My original problem that my website isn’t displayed correctly is still present.
 * Can you help me fix this problem?
    -  This topic was modified 3 years, 2 months ago by [daspooma](https://wordpress.org/support/users/daspooma/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-bosa_excerpt-declared-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [Bosa Themes](https://wordpress.org/support/users/bosathemes/)
 * (@bosathemes)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-bosa_excerpt-declared-2/#post-16595259)
 * Hello,
   Sorry for the inconvenience. The mentioned issue is more related to the
   PHP 8. We will fix the issue in the next theme update.For now, we strongly recommend
   to decrease the PHP version of your site to 7.4 to solve the problem.
 *  Thread Starter [daspooma](https://wordpress.org/support/users/daspooma/)
 * (@daspooma)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-bosa_excerpt-declared-2/#post-16596130)
 * I changed php to version 7.4.33 but the problem is still the same.
 *  Theme Author [Bosa Themes](https://wordpress.org/support/users/bosathemes/)
 * (@bosathemes)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-bosa_excerpt-declared-2/#post-16601674)
 * Hello,
   We have thoroughly checked our environment, but unfortunately, we were
   unable to reproduce the issue on PHP 7.4.33.
 * We understand that this may be causing inconvenience to you, and we would be 
   happy to assist you in resolving the issue as soon as possible. In order for 
   our technical team to investigate and fix the issue, we kindly request that you
   provide us with your site URL, WordPress dashboard username and password.
 * You can securely share this information with us through the following link: [https://bosathemes.com/contact](https://bosathemes.com/contact).
   We assure you that our team will handle your credentials with the utmost care
   and confidentiality.
 * Thank you for your understanding, and we look forward to resolving this matter
   for you.
 *  Thread Starter [daspooma](https://wordpress.org/support/users/daspooma/)
 * (@daspooma)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-bosa_excerpt-declared-2/#post-16603253)
 * Hello,
 * I got the error. I had the password protection on. Whitout the password protection
   the website works with 7.4.33. I looking forward to update the theme an activate
   a newer version of php.
 * Regards,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘function bosa_excerpt declared’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bosa/1.6.4/screenshot.png)
 * Bosa
 * [Support Threads](https://wordpress.org/support/theme/bosa/)
 * [Active Topics](https://wordpress.org/support/theme/bosa/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bosa/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bosa/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [daspooma](https://wordpress.org/support/users/daspooma/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/function-bosa_excerpt-declared-2/#post-16603253)
 * Status: resolved