Getting error when trying to use the theme.

Home Page 8DegreeThemes Forum Premium Themes EightMedi Pro Getting error when trying to use the theme.

  • Author
    Posts
  • #20596
    PurchasedEightMedi Pro(275days Remaining)
    MSpine
    Participant

    I’m getting this error and I don’t know what I need to do to be able to start customizing the website.

    Fatal error: Can’t use function return value in write context in /home1/sports2/public_html/wp-content/themes/eightmedi-pro/inc/eightmedi-homesections.php on line 8

  • #20598

    8Degree Themes
    Keymaster

    Hi There,

    We did test it in latest version instances of WordPress (5.2.2) but could not re-generate the issue you are facing. Can you share your environment with us? like: Browser Name and Version, WordPress Version, Theme Version, Your PHP Version.

    Though from the line number you mentioned the issue must be in this code:

    if(!empty(get_the_content())){
    				?>
    				<section class="homepage-content">
    					<div class="ed-container-home">
    						<?php the_content();?>
    					</div>
    				</section>
    				<?php
    			}

    which you can fix temporarily till we find the exact cause by changing into:

    //if(!empty(get_the_content())){
    				?>
    				<section class="homepage-content">
    					<div class="ed-container-home">
    						<?php the_content();?>
    					</div>
    				</section>
    				<?php
    			//}

    just commenting (//) the if condition tags.

    Thanks!

    Thanks!

  • #20602
    PurchasedEightMedi Pro(275days Remaining)
    MSpine
    Participant

    WordPress 4.9.10
    Using Google Chrome, up to date
    PHP version: 7.2.7
    EightMedi ProVersion: 2.0.3

  • #20605

    8Degree Themes
    Keymaster

    Hi There,

    We are also testing in similar environment but are not facing any errors.
    Is it possible for you to share us your temporary admin details via email at support@8degreethemes.com
    We will have a quick testing and then you can remove the temporary details.

    Thanks!

    • #20645
      PurchasedEightMedi Pro(275days Remaining)
      MSpine
      Participant

      Our website is currently live and must stay up, I am doing a trial run in a WP staging environment. I will be unable to do more troubleshooting until I return from a business trip. Can you tell me where to change that line of code that you provided to see if it works?

    • #20648

      8Degree Themes
      Keymaster

      Hello MSpine,

      Here are details:

      Filename:
      /wp-content/themes/eightmedi-pro/inc/eightmedi-homesections.php

      line: 8

      Existing Code:

      if(!empty(get_the_content())){
      ?>
      <section class="homepage-content">
      	<div class="ed-container-home">
      		<?php the_content();?>
      	</div>
      </section>
      <?php
      }

      Replace With:

      //if(!empty(get_the_content())){
      ?>
      <section class="homepage-content">
      	<div class="ed-container-home">
      		<?php the_content();?>
      	</div>
      </section>
      <?php
      //}

      Thanks!

    • #20749
      PurchasedEightMedi Pro(275days Remaining)
      MSpine
      Participant

      Thanks for that! It does seem to be loading now, however it’s having trouble loading the demo data. Is there something else I need to do?

    • #20750

      8Degree Themes
      Keymaster

      Hi There,

      Demo loading issue come if your server’s execution time is less and is able to import the images.
      If it is possible please send us your site details at support@8degreethemes.com our support team will look after the issue and import the demo data for you.

      Thanks!

  • #20644
    PurchasedEightMedi Pro(258days Remaining)
    Laure Muller
    Participant

    Hello,

    I am also receiving this error on my new WordPress install.
    Has there been any updates on how to resolve the issue?

    Thanks

    • #20646
      PurchasedEightMedi Pro(275days Remaining)
      MSpine
      Participant

      None as of yet for me at least, I suggest following the thread. Hopefully there will be a resolution soon!

    • #20650

      8Degree Themes
      Keymaster

      Hello Laure Muller,
      We have contacted you via email, please do follow up from there.
      We will try to get things fixed asap.
      Thanks!

You must be logged in to reply to this topic.

Our New Release - Eight Degree Innovative Corporate Theme (EDICT)

EDICT is a clean and innovative business WordPress theme. This business theme, built fully on theme options with Redux Framework, comes up with three stunning homepage demo layouts that can be imported with just one click of a button. Not to mention it also includes three elegantly designed blog, portfolio and header layouts.

Click on the below image for more detail.

Edict – Eight Degree Innovative Corporate Theme

Please post your questions in the respective forum above.

All questions related to our Pro theme will be answered in less than 24 hours. All questions related to our Free theme will be answered in less than 48 hours.
Our Facebook page is the best place to get updated with themes, documentation, question/answers. Please like us here: