Thank you for responding so quickly. I did like you suggested and it didn’t seem to work. It seems like it has something to do with the child theme. I had an issue when I was setting up the site. Here is the transcript of that fix, perhaps it will help. I tried commenting out line 66 again but it did not fix it.
Hi, I am working on stongoministorage.com and have created a child theme to add a custom style sheet. When I do a live preview of the child theme, I get this message:
Warning: require_once(/home/schoelkopf/stongoministorage.com/wp-content/themes/sto-n-go/admin/options-framework.php) [function.require-once]: failed to open stream: No such file or directory in /home/schoelkopf/stongoministorage.com/wp-content/themes/zenon-lite/functions.php on line 420
Fatal error: require_once() [function.require]: Failed opening required ‘/home/schoelkopf/stongoministorage.com/wp-content/themes/sto-n-go/admin/options-framework.php’ (include_path=’.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/schoelkopf/stongoministorage.com/wp-content/themes/zenon-lite/functions.php on line 420
If I activate the child theme, I get the same message but I cant do anything until I comment out line 420. Then the admin area will come back up and I can switch back. Can you tell me what is going on?
Reply
Towfiq I.
on June 19, 2012 at 6:36 pm
Make this changes:
in functions.php
This section should test the child theme are for the admin folder and if exists set path to child, else set to template. Temp fix below:
Find this:
if ( STYLESHEETPATH == TEMPLATEPATH ) {
change to
if ( STYLESHEETPATH != TEMPLATEPATH ) {
—-
in options.php
Find this:
$imagepath = get_stylesheet_directory_uri() . ‘/admin/images/’;
change to
$imagepath = OPTIONS_FRAMEWORK_DIRECTORY . ‘images/’;
Found another bug. now I am getting this error in the Zenon theme options:
Warning: Division by zero in /home/schoelkopf/stongoministorage.com/wp-content/themes/zenon-lite/options.php on line 66
Seems to be another result of setting up a child theme. Please help.
Reply
Towfiq I.
on June 20, 2012 at 9:40 pm
make sure you did not install the plugin “Options Framework”
And like I mentioned before, try this:
Make these changes:
in functions.php
This section should test the child theme are for the admin folder and if exists set path to child, else set to template. Temp fix below:
Find this:
if ( STYLESHEETPATH == TEMPLATEPATH ) {
change to
if ( STYLESHEETPATH != TEMPLATEPATH ) {
—-
in options.php
Find this:
$imagepath = get_stylesheet_directory_uri() . ‘/admin/images/’;
change to
$imagepath = OPTIONS_FRAMEWORK_DIRECTORY . ‘images/’;
Jason Earrame
on June 20, 2012 at 9:46 pm
I have made those changes. I tried to post that before with a thank you, but it didn’t show up here. I do not have Options Framework plugin.
Towfiq I.
on June 20, 2012 at 9:50 pm
do you wish to add the options framework to your child theme? if not, you can try commenting out line number 66 of options.php file.
Jason Earrame
on June 20, 2012 at 9:56 pm
Thank you, that worked. I don’t believe I will need that plugin. will these changes be a problem if the theme is updated in the future?
Towfiq I.
on June 20, 2012 at 10:01 pm
Could be a problem, yeah. but you can again comment out that line.