Tried to modify the template files in bartik in order to rewrite "http" to "https" for videolinks which now cause my SSL site to be unsecure.
The modification did not work, so I restored the template files to the original state.
After that the color of the theme changed to the standard blue and couldn't be changed back.
Reinstalled bartik and the colors are back to normal. But: whenever I open appearances and save the settings I get tons of php notices and errors like the ones listed below.
How can that be. I even re-updated the whole drupal 7.15 and still these errors persist.
Location https://www.zooot.net/admin/appearance/settings/null
Referrer https://www.zooot.net/admin/appearance/settings/bartik?render=overlay
Message Notice: Undefined index: null in system_theme_settings() (line 404 of /var/www/www.zooot.net/htdocs/modules/system/system.admin.inc).
Location https://www.zooot.net/admin/appearance/settings/null
Referrer https://www.zooot.net/admin/appearance/settings/bartik?render=overlay
Message Notice: Undefined index: null in system_theme_settings() (line 575 of /var/www/www.zooot.net/htdocs/modules/system/system.admin.inc).
Location https://www.zooot.net/admin/appearance/settings/null
Referrer https://www.zooot.net/admin/appearance/settings/bartik?render=overlay
Message Warning: in_array() expects parameter 2 to be array, null given in system_theme_settings() (line 442 of /var/www/www.zooot.net/htdocs/modules/system/system.admin.inc).
Location https://www.zooot.net/admin/appearance/settings/null
Referrer https://www.zooot.net/admin/appearance/settings/bartik?render=overlay
Message Warning: in_array() expects parameter 2 to be array, null given in system_theme_settings() (line 442 of /var/www/www.zooot.net/htdocs/modules/system/system.admin.inc).
Location https://www.zooot.net/admin/appearance/settings/null
Referrer https://www.zooot.net/admin/appearance/settings/bartik?render=overlay
Message Notice: Trying to get property of non-object in system_theme_settings() (line 404 of /var/www/www.zooot.net/htdocs/modules/system/system.admin.inc).
Location https://www.zooot.net/admin/appearance/settings/null
Referrer https://www.zooot.net/admin/appearance/settings/bartik?render=overlay
Message Notice: Undefined index: null in system_theme_settings() (line 404 of /var/www/www.zooot.net/htdocs/modules/system/system.admin.inc).
Can anyone help?
Best wishes,
Paul
Comments
Comment #1
marcingy commentedComment #2
Jooblay.net commentedIf your looking to set your site to complete https:// you can do this with Mod rewite in your htaccess file.
Enter the following right below mod rewrite:
#
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] php_value session.cookie_secure 1
#
**Note** this is for a generic https:// set, meaning this .htaccess call will rewrite any site located in this folder to https://
Now if you want to set a absolute path to https:// set it as this. Note change example.com to your address. This is totally secure and forces https:// on your site.
#
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R,L] php_value session.cookie_secure 1
#
(note: php_value session.cookie_secure 1 is really optional. This is recommended by some developers.)
**Note** the absolute path is domain and subdomain specific and you can not throw your .htaccess file around like you can with the generic one.
Now, if your facing an https:// *.example.com wildcard setup. This is a bit tricky. You can do it through .htaccess but you will get a subdomain that looks like dev.example.com/dev which is ok but can loop and get nasty. To set your *.wildcardsubdomain.com you need to access your ssh:) set an ip address and then set the root. If this is your issue I can go deeper on this and there are some be it hard to find online docs of this.
Conclusion: Modifying any core .php themes anything like that is against the god of Drupal and Lucifer could strike your down:)
As to your exact issue now with the php errors I would try the following:
1. Reinstall drupal core.
2. Return to a back up database.
Also there are a host of modules if you want to theme by page or role? Then again you may want to take a hard look at your administration of the site and see if you need to break off divisions or departments into subdomain?
Hope this helps:)
Comment #3
paul_constantine commentedThank you leseen,
I solved all my HTTPS issues by modifying my videomodules . The sites is now all HTTPS and even the YouTube and Vimeo Links are in HTTPS.
As to my issue with the php errors I reinstalled the core but that did not change the errors. But these errors only occur if I change the color of my bartik theme. Once everthing is set there are no more errors.
Thank you for your support,
Paul
Comment #4
Jooblay.net commentedYes I, the batik errors are probably occurring because you may have modified the sites/default/files/css/my-theme-name-then-13542435b /color.css This file is cached from your color.css doc in your sites/all/themes/mytheme/css/color.css once you change the later in bartik you have to either replace the color.css file in your files/css folder or clear all cashing. I have gotten this error from deleting the machine named folder.
Either way cleaning up your theme should fix this error.
Note: On the https:// you may run into issues when they play the videos on your site. You may just want to rip a page on how your security works.
So for example just telling them to clear there cache will reset the solid secure link after playing the videos.
I am always one for https:// :) so great call on that... Even a broken link of https: is better then none:)
Here is a good tool to work if your are having issues with external links setting your https off:) http://www.whynopadlock.com/
how this helps out!)