Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Parse error: syntax error, unexpected ',' in /home/mailsp7/public_html/bonfire/application/modules/auditlog/views/content/create.php on line 25 #1116

Closed
xoco70 opened this issue May 27, 2015 · 4 comments
Milestone

Comments

@xoco70
Copy link

xoco70 commented May 27, 2015

Hi,

After successfully generate module, all create operation gives me that error. It seems that the generated code contains errors.

I want to use bonfire to start a new project, but I can't test it without resolving it :(

Any idea?

@mwhitneysdsu
Copy link
Contributor

To help narrow down the cause of the issue, what options were used when generating the module?

@samerkamel
Copy link

@xoco70 in bonfire/modules/builder/views/files/view_default.php
there is an extra "." on line 32

Replace
// Validation rules for this fieldset
if (is_array($validation_rules)) {
foreach ($validation_rules as $key => $value) {
if ($value == 'required') {
$required = ". lang('bf_form_label_required')";
$required_attribute = true;
}
}
}

with :
// Validation rules for this fieldset
if (is_array($validation_rules)) {
foreach ($validation_rules as $key => $value) {
if ($value == 'required') {
$required = " lang('bf_form_label_required')";
$required_attribute = true;
}
}
}

Worked for me :)

@samerkamel
Copy link

On a windows installation i found that i had to go through the whole switch case in the same file to remove very weirdly placed dots into a double quote string.

Sorry i am not a git user so not sure how to flag this post for review and consider it as a solution..

mwhitneysdsu added a commit that referenced this issue Jun 4, 2015
@mwhitneysdsu
Copy link
Contributor

I have a feeling this is still not right... It would be nice if we could get this down to the point that it was easier for people to customize the output of the builder.

@mwhitneysdsu mwhitneysdsu added this to the 0.7.5 milestone Jun 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants