Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

debugging dev/build errors - FIXED


Reply


1506 Views

Avatar
wildflower1975

Community Member, 59 Posts

9 August 2011 at 9:51am

Hi

I've installed the skyscraper widget on my local machine without issue but when I copy it to the live server, I'm having trouble with the dev/build command not completing.

Building database SS_chd using MySQL 5.0.51a-24+lenny5

Creating database tables
PageComment
SiteConfig
SiteTree
Email_BounceRecord
QueuedEmail
File
Group
LoginAttempt
Member
MemberPassword
Permission
PermissionRole
PermissionRoleCode
Widget
Field Widget.ClassName: changed to enum('Widget','SkyscraperWidget') character set utf8 collate utf8_general_ci default 'Widget' (from enum('Widget') character set utf8 collate utf8_general_ci default 'Widget')
WidgetArea
Page
ErrorPage
RedirectorPage
VirtualPage
Image
Folder
Image_Cached
SkyscraperWidget
Table SkyscraperWidget: created
Field SkyscraperWidget.ID: created as int(11) not null auto_increment
Field SkyscraperWidget.Adcode1: created as mediumtext character set utf8 collate utf8_general_ci
Field SkyscraperWidget.Adcode2: created as mediumtext character set utf8 collate utf8_general_ci
Field SkyscraperWidget.Adcode3: created as mediumtext character set utf8 collate utf8_general_ci
Field SkyscraperWidget.OnlyThis: created as int(11) not null default 0

here it shows the default assets/error-500.html page appended to the oputput

My Apache error log just says
[debug] mod_deflate.c(615): [client 119.63.196.52] Zlib: Compressed 4587 to 1800 : URL /sapphire/main.php
which doesn't help much and is dated 5 minutes ago, not from when I ran dev/build

UPDATE
on this page
http://doc.silverstripe.org/sapphire/en/topics/debugging

it says to put the site in dev mode by putting

Director::set_environment_type("dev");

in your mysite/_config.php

Now that I'm in forced dev mode, I get a helpful verbose error message - the problem is to do with ALTER permissions for my MySQL database user.