Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

I am really a PhP beginner so apologize if my question is stupid.

 

I did install the module Auto Emailer 1.4 on my website server (Linux),FCK editor as well

 

From admin auto emailer control panel, when trying to modify settings, or customers, or orders from the control panel, i get this message :

 

Warning: fopen(auto_emailer/auto_emailer.php): failed to open stream: Permission denied in /hsphere/local/home/azteledo/laboiteasucres.com/admin/includes/functions/auto_emailer.php on line 147

Warning: fwrite(): supplied argument is not a valid stream resource in /hsphere/local/home/azteledo/laboiteasucres.com/admin/includes/functions/auto_emailer.php on line 157 Cannot write to file

(auto_emailer/auto_emailer.php)

 

When using announce, I get this other message :

 

Message: Fatal error: Call to undefined function: tep_draw_fckeditor() in /hsphere/local/home/azteledo/laboiteasucres.com/admin/auto_emailer_announce.php on line 178

 

Tried with files properties at 777, no change

 

Is it something to set within FCK editor ?

 

Could you help ?

Thanks very much

Posted

The fopen problem sounds like a server setting problem. You should ask your host to see if they are preventing that.

 

For the second problem, the instructions say to setup th epath like this

	$oFCKeditor -> BasePath	= 'http://www.yoursite.com/FCKeditor/';

I've found it works best, in most shops, if it is

	$oFCKeditor -> BasePath	= 'FCKeditor/';

That might be the cause of it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted (edited)
The fopen problem sounds like a server setting problem. You should ask your host to see if they are preventing that.

 

For the second problem, the instructions say to setup th epath like this

	$oFCKeditor -> BasePath	= 'http://www.yoursite.com/FCKeditor/';

I've found it works best, in most shops, if it is

	$oFCKeditor -> BasePath	= 'FCKeditor/';

That might be the cause of it.

 

Jack

Edited by jpcarre
Posted

OK for the first it's now solved.

The second still there, I've changed the basepath as suggested, no change

I relocated FCKeditor folder out of admin folder, no change.

 

I am getting an error message out of html_output ....

seems this modules has something amazing.

The genuine module looks not correct, so when adding the auto emailer lines at the end, the code looks abnormal...

 

end of Genuine code :

////

// Output a form pull down menu

function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {

$field = '<select name="' . tep_output_string($name) . '"';

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

 

for ($i=0, $n=sizeof($values); $i<$n; $i++) {

$field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';

if ($default == $values[$i]['id']) {

$field .= ' SELECTED';

}

 

$field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>';

}

$field .= '</select>';

 

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

 

return $field;

}

?>

 

When adding the auto emailer lines

 

////

// Output a form pull down menu

function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {

$field = '<select name="' . tep_output_string($name) . '"';

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

 

for ($i=0, $n=sizeof($values); $i<$n; $i++) {

$field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';

if ($default == $values[$i]['id']) {

$field .= ' SELECTED';

}

 

$field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>';

}

$field .= '</select>';

 

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

 

return $field;

}

////

// Output a form textarea field w/ fckeditor

function tep_draw_fckeditor($name, $width, $height, $text) {

 

$oFCKeditor = new FCKeditor($name);

$oFCKeditor -> Width = $width;

$oFCKeditor -> Height = $height;

$oFCKeditor -> BasePath = 'FCKeditor/';

$oFCKeditor -> Value = $text;

 

$field = $oFCKeditor->Create($name);

 

return $field;

}

?>

 

 

I get the following error when opening the admin page:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/azteledo/laboiteasucres.com/admin/includes/functions/html_output.php on line 289

Can you help , thanks

Posted

The error means you have made a mistake in the changes for the html_output.php file. You should restore that file to the original, make sure the shop works (except this contribution) and then make the changes to the file once again.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...