Forum Support

Shape 5
October 20, 2021, 06:40:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Syntax Error in wp-includes/comment.php for Samba Spa Theme  (Read 709 times)
GrazieleR
Jr. Member
**
Offline Offline

Posts: 2



« on: March 26, 2016, 11:50:10 AM »

Hi Team,

I have downloaded the Samba Spa theme from Feb 2016, followed the instructions on "How To Install A WordPress Site Shaper" by copying and overwriting my copy of WordPress previously installed with Softaculous and I get the below failure message when I'm trying to reach my website. I can't go to wp-admin to update Worpdress.

Code:
Parse error: syntax error, unexpected ',', expecting '(' in /home/graziel3/public_html/wp-includes/comment.php on line 2303

Could you have a look at the comment.php file in SiteShaper_Shape5_Samba_Spa_WP.zip and let me know if you can re-produce the problem?

My hosting company (Siteground.com) had a look and they found this set of unrecognized characters in the PHP file: awesomescreenshot.com/0ce5qozh8f
As they couldn't go further than that I asked them if they could try and force a manual update of Wordpress which they did but I still get the following error message in my browser:

 
Code:
Parse error: syntax error, unexpected '}' in /home/graziel3/public_html/wp-includes/comment.php on line 2311

Before I copied your files over I was on Wordpress version 4.4.2 and my url is https://www.massagebygraziele.com
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: March 28, 2016, 08:00:18 AM »

That screenshot would appear to indicate that some of the files were corrupted during the upload process.  When using FTP, it is best to make sure that the FTP client is set to transfer in Binary mode.  The default mode that most FTP clients use (including when "auto" is selected) is ASCII mode, which transfers the "text" inside the files, rather than the actual files; this can cause code corruption, as information can get lost during the transfer (as indicated by your screenshot).

I recommend re-uploading the files and making sure that your FTP client (I recommend FileZilla) is set to binary mode.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
GrazieleR
Jr. Member
**
Offline Offline

Posts: 2



« Reply #2 on: March 28, 2016, 01:17:55 PM »

Thank you, after a few attemps at re-downloading the zip file, re-extracting and re-uploading I got it to work properly (with binary transfer).

Could you please confirm that with the Site Shaper enabled and now working I do not need to worry about the zip file of the theme (e.g. the site shaper already contains the theme) and I only now need to upload the right pictures I want for my site?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: March 28, 2016, 02:39:51 PM »

Yes, the Shaper includes the theme, and all plugins used on the demo.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.