Warning on new install

Forums Forums SWIFT Themes Bug report and suggestions. Warning on new install

This topic contains 13 replies, has 4 voices, and was last updated by  Lasith Lansakara 2 years, 7 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
URL:
Version:
  • Author
    Posts
  • #16272

    Satish and fellow Swiftlers:
    So I just installed a the Swift premium theme– this is a new site, so I have 0 content on there. I wanted to see what the new layouts, etc are. However I get a warning on on doing a save without any changes really. The warning received is:
    Warning: Division by zero in /hermes/web05/b9/moo.discoveringserendipi/discSerendipity/gastronomy/wp-content/themes/swift/lib/admin/create-styles.php on line 37

    Warning: Division by zero in /hermes/web05/b9/moo.discoveringserendipi/discSerendipity/gastronomy/wp-content/themes/swift/lib/admin/create-styles.php on line 53

    Furthermore, the page appears all wacky: http://www.discovering-serendipity.com/gastronomy/

    Any ideas?

    #21602

    Satish
    Keymaster

    reset design options.

    #21614

    Worked, thanks Satish! Any reason that happened?

    #21603

    Satish
    Keymaster

    default options were not set on theme activation.

    #21609

    Gary Daniels
    Member

    OK, I’m having major problems here. I tried to install the update but said swift already existed. So I renamed the swift folder and tried again. This time worked but I got the “division by zero” errors mentioned in this thread. Also noticed my logo was gone and layout was all screwed up. So I deleted the update and returned to the original swift by renaming it back to “swift”. This solved nothing and my site was still all screwed up. So I found this thread and followed the instructions and reset the design options. Now my site is even worse screwed up….all modifications gone– colors, logos, etc etc.

    Here’s the site:
    http://thenewworld.us

    It should look like this site:
    http://lostworlds.org

    Honestly, I really think you need to go back to the old way of updates where the update created a new theme folder with new name instead of naming every update “swift.” I never had problems with the old system but it seems every time I have to delete the swift folder in order to install a new update I get all kinds of problems that takes hours to resolve.

    How do I fix the current problem with the least amount of work?

    #21604

    Satish
    Keymaster

    I recommended reset to Lasith because it was a new site
    1. Switch to 6.0.9 on http://thenewworld.us
    2. Import design options from http://lostworlds.org/
    3. follow this
    http://swiftthemes.com/upgrading-from-swift-v6-0-9-to-v6-1-0/

    #21605

    Satish
    Keymaster

    just uploaded v6.1.5, use it, not 6.1.4

    #21610

    Gary Daniels
    Member

    OK, so I tried installing 6.1.4 on another website ( http://travelingaround.com ) and once again it completely screwed up the entire site. First I renamed the “swift” folder then I uploaded 6.1.4 and activated it. when I viewed my website the homepage was completely screwed up and the logo was missing from the header, etc. I then decided to upload 6.1.5 (after once again renaming the “swift” folder) and the site is still screwed up. I then went into the swift options page and clicked “save” and the page got even more screwed up.

    Here are the error messages I get on the swift options page:

    Warning: Division by zero in /home/lostworl/public_html/travelingaround.com/wp-content/themes/swift/lib/admin/create-styles.php on line 37

    Warning: Division by zero in /home/lostworl/public_html/travelingaround.com/wp-content/themes/swift/lib/admin/create-styles.php on line 53

    http://travelingaround.com

    I did get my previous site ( http://thenewworld.us ) fixed and reverted back to 6.0.9. Not sure if I’m going to risk upgrading back to 6.1 until you come up with an easier upgrade process.

    #21606

    Satish
    Keymaster

    follow this procedure if you are upgrading from 6.0.[1-9] to 6.1.0+

    http://swiftthemes.com/upgrading-from-swift-v6-0-9-to-v6-1-0/

    #21612

    Andrea Prior
    Member

    What a mess trying to upgrade has made. I followed all the instructions with no success. Having to re-build it all.

    #21613

    Andrea Prior
    Member

    OK all fixed now! Just have to re-do all my colours and fonts as the import colours and fonts doesn’t work for me.
    Thanks for the update Satish, it is a fantastic theme but I agree with what someone else suggested that updating be a little easier. The instructions in http://swiftthemes.com/upgrading-fro…0-9-to-v6-1-0/ just didn’t work for my upgrade.

    #21607

    Satish
    Keymaster

    that method has to be followed only when upgrading from v6.0.[1-9] as we changed how the options are stored and added new color options.
    upgrading from 6.1.0 to 6.1.[1-n] is just replacing the files.

    Will try to include a one click upgrade from the dashboard in future versions.

    #21611

    Gary Daniels
    Member

    @Satish 6204 wrote:

    that method has to be followed only when upgrading from v6.0.[1-9] as we changed how the options are stored and added new color options.
    upgrading from 6.1.0 to 6.1.[1-n] is just replacing the files.

    Will try to include a one click upgrade from the dashboard in future versions.

    I was only upgrading from 6.1.0 to 6.1.4 and got all these errors…I had already previously upgraded from 6.0.9 to 6.1.0. And FYI, I also had some problems with that process….it didn’t import all my ad codes from the previous version. And it also didn’t import my sidebar widgets with html.

    But this time I was only going from 6.1.0 to 6.1.4 and got tons of errors. All I did was rename the old ‘swift’ folder to ‘swift-v6.1.0′ and then uploaded 6.1.4 and activated it. That’s it. And my site is all screwed up:

    http://travelingaround.com

    The same thing happened to the previous site I tried to update but I did finally get that one back by switching all the way back to 6.0.9.

    The errors seem to occur when I rename the ‘swift’ folder. After I rename it WordPress gives me an error stating the current theme is broken and is reverting to default theme. Then when I upload the 6.1.4 and activate it the site is completely screwed up….the header logo and background disappear and the formatting of the entire site is messed up.

    I guess my question is why do we have to rename the swift folder? Previous versions used to upload to a new swift folder with version name…and I had no problems. But every time I have to rename or delete the old swift folder I end up with hours of problems to solve to get my site back to normal.

    #21608

    Satish
    Keymaster

    I guess my question is why do we have to rename the swift folder?

    WordPress wont delete or overwrite a folder. Earlier I used to include version number in the folder name, problem with that is it will break your child themes.

    If you don’t plan to use child themes, then
    1. Download the theme to your desktop
    2. Extract it
    3. Rename the extracted folder
    4. zip it
    5. then install

    Like this you wont have to rename the swift folder on the server.

    Why this mess…
    I placed some piece of the code outside an if condition, because of that it was deleting the theme options when ever swift is deactivated and activated or a child theme of Swift is activated.
    I found this bug yesterday, released v6.1.5 with a fix immediately.

    I can understand your frustration and pain as it happened on my blog to :(

    My apologies for wasting your time and for the trouble you have to go through.


    Others having the same problem..
    It’s not as bad as it sounds if you used v6.0.9 or previous ones, you can import those options to the latest version using this plugin
    http://swiftthemes.com/upgrading-from-swift-v6-0-9-to-v6-1-0/

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.