Re: Cannot write in Define Pages Editor
Quote:
Originally Posted by
mc12345678
As has been said in relation to other posts you've made about file and folder permissions, those may be necessary for your system (775) but are not standard nor otherwise directly suggested in the Zen Cart installation docs.
Yes, that information may help you in the future, which is great, but it may open a security issue for someone else and why forum members post information such as this one.
I again note though, the described error about not being able to save the file, at what point in trying to access the define page was that log generated?
Respectfully, I have already clarified that my instructions are meant for only a certain kind of systems, I really ignore how other systems work.
There is a thought-process behind the way I explained, mainly the way apache2 defines envvars:
Code:
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid
unset HOME
# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
SUFFIX=
fi
# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
Please, let's not continue beating a dead horse.
This is a friendly remark, please don't take to offense.
CK
Re: Cannot write in Define Pages Editor
@ mc,
Quote:
I again note though, the described error about not being able to save the file, at what point in trying to access the define page was that log generated?
I don't quite remember which ones of my multiple tries generated the error, basically it was generated by copying the wrong file into an incorrect directory, when I realized what the correct folder was I moved the file in there and set directory to correct perms (again, for my system), that cleared all errors.
The file was not installed previously there, that is why the editor could not write, I had to copy over the base file. It never said it could not save, but could not write.
Re: Cannot write in Define Pages Editor
Quote:
Originally Posted by
ckosloff
Respectfully, I have already clarified that my instructions are meant for only a certain kind of systems, I really ignore how other systems work.
There is a thought-process behind the way I explained, mainly the way apache2 defines envvars:
Code:
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid
unset HOME
# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
SUFFIX=
fi
# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
Please, let's not continue beating a dead horse.
This is a friendly remark, please don't take to offense.
CK
No offense. As an avid reader and seeker for success, because each thread is its own issue, others won't know about how or why your system isn't like the vast majority.
As @swguy has pointed out, others may arrive here having experienced a similar issue but the issue may have occurred for a different reason.
Identifying the contributing conditions helps them determine the value of the fix and/or cause of their issue. My posting of the associated information was in furtherance of completing the posting tips as relates to the issue in this thread.
Those that have offered assistance do so voluntarily. Ideally they will continue to do so especially when enough information is made available as directly relates to the posted issue.
It's a lot to consider and from my perspective you've been adventurous in working with the software. I certainly don't want you to be discouraged to seek support. Your extra effort to bound the conditions will get you the needed help a whole lot faster and more effectively to send you off to increase your profit.
Re: Cannot write in Define Pages Editor
The only error I found in Zen Cart install is that some define pages like contact_us are missing in the template, and you have to copy the base file into the right template folder to make it work, that is an extra step that the user must take maybe fixed in later versions when Zen Cart will have AI. :)
Re: Cannot write in Define Pages Editor
That's because all the define_*** pages come in the includes/languages/english/html_includes folder to be saved in YOUR_TEMPLATE after editing.
And, again, you may want to rip the shrink wrap off the docs. https://docs.zen-cart.com/user/template/define_pages/
Re: Cannot write in Define Pages Editor
Totally agreed, before rushing into forum or the test site, I should go over docs.
Re: Cannot write in Define Pages Editor
Quote:
Originally Posted by
ckosloff
Totally agreed, before rushing into forum or the test site, I should go over docs.
Sometimes also using your favorite internet search engine to include the phrase Zen Cart may also get to a close related thread. If the issue isn't specifically with current code, it likely has been addressed.
Re: Cannot write in Define Pages Editor