Widgets registered using wp_register_sidebar_widget()
triggers a PHP warning when they are added to a sidebar.
The cause is in inc/widgets.php, in the graphene_dynamic_sidebar_params
function.
It expects $params
to have 2 elements however in these widgets, $params
only has 1 elements so PHP complains about accessing the element at index 1.
This is easily fixable by moving the line $widget_number = $params[1]['number'];
inside the if condition. Since you pass a function to wp_register_sidebar_widget(), the condition isn’t triggered for older widgets.
Here’s a basic implementation of a older widget for testing: https://developer.www.ads-software.com/reference/functions/wp_register_sidebar_widget/
]]>When in admin, graphene theme, reports deprecation warnings on two lines. In both cases, because null is passed where a string is expected. I fixed both (for now) by casting the variable to string.
Line 2187: $path = str_replace( ‘\\’, ‘/’, (string) $path );
Line 7288: $scheme_separator = strpos( (string)$path, ‘://’ );
Hope these get added to the core soon.
]]>I have not upgraded Graphene in years and wondering what are the benefits of the new version. Thanks!
]]>I begrudgingly upgrade to newest version 2.9.4 and very complex to modify. Somewhere along the way, the Category text header block is misspell. I don’t know where I can correct it. How do I go about adding and deleting topics on widget.
]]>Thank you for the new version! Just updated Graphene to 2.9.3 and discovered there is now a “watch” symbol in the top left corner on each page of my site, just under the title. This symbol belogs actually to Posts, not to Pages. The “watch” is displayed on the top of every post since I have the following setting on: Graphene: Display => Post date display => Inline text.
I now changed the option “Inline text” to “Icon with year”, and the watch is disappeared from the pages.
I have several sites with Graphene, and this problem appears on each of them.
Thank you,
Natalia
]]>Hi. Thanks for the amazing theme ?
We use it in a schoolpage and we noticed that the 3rd level menu items, can’t be seen in a mobile screen.
Can you please take a look at this bug?
Thanks in advance,
Lena
Hello friends. Instead of using text in the header, I wanted to insert a logo, but not through the header image but rather a logo above it, so as not to be distorted when resizing the size of the website window. It’s possible? Maybe with a wigdet in the header?
]]>In WordPress 6.2.2 with php 8.1 and Graphene 2.9, I see this error
PHP Deprecated: Automatic conversion of false to array is deprecated in /var/www/…./…../wp-content/themes/graphene/inc/head.php on line 30
[13-Dec-2023 11:08:46 UTC] PHP Warning: getimagesize(/var/www/…./…./files/2013/01/cropped-Cabecera-OK-copia2.jpg): Failed to open stream: No such file or directory in /var/www/…./…./wp-content/themes/graphene/inc/functions.php on line 519
Good afternoon, for some time Google page speed has been reporting an accessibility problem with my site. I would like to ask you if the graphene theme can take further steps to become more accessible. Thank you
]]>Hi,
We have been using your theme for years now, and we have also used the WPML string translation plug-in for translating every english word to Norwegian. In some time now, we have been forced to deactivate the String Translation plug-in as it causes issues. There is this error message at the top:
Warning: Undefined array key “navmenu_home_desc” in /customers/c/3/e/mirnett.org/httpd.www/wp/wp-content/themes/graphene/admin/wpml-helper.php on line 98 Warning: Trying to access array offset on value of type bool in /customers/c/3/e/mirnett.org/httpd.www/wp/wp-content/themes/graphene/admin/wpml-helper.php on line 101 Warning: Trying to access array offset on value of type bool in /customers/c/3/e/mirnett.org/httpd.www/wp/wp-content/themes/graphene/admin/wpml-helper.php on line 101
Also, the site looks weird, with the top menu being stretched downwards.
I have been in contact with the WPML-support, who asked if this message appeared on the standard WordPress themes, which is not the case.
I have also problems raising the WP memory Limit. It is currently on 40 M. Could this also be related to the theme?
Best wishes,
Hans Petter Wiken, MiR
How can I get the posts block removed from the home page? Whatever page I make my home page, the posts block magically appears above the content I have created for the page. I only want static content shown on the home page – no posts.
]]>Is there a way to deactivate the option”Hide featured image” for all website when using a multisite and not to have to do the setting on each page?
Where can I make settings for the image display via css at a central point for all pages of the multisite?
WP 6.2.2
Graphene-Theme Free Version 2.9
Hi and thanks for the great theme.
This is related to the https://www.ads-software.com/support/topic/warning-image-size/ issue and its a fix suggestion.
I also use the theme in a multisite WordPress and got the same PHP warning
PHP Warning: getimagesize(/var/….): Failed to open stream: No such file or directory in …/wp-content/themes/graphene/inc/functions.php on line 519
I managed to solve it by replacing the function graphene_get_image_size() in file graphene/inc/functions.php with the following code.
function graphene_get_image_size( $file ){
$image_size = array( '', '' );
$upload_dir_paths = wp_upload_dir();
$file = str_replace( trailingslashit( $upload_dir_paths['baseurl']), trailingslashit( $upload_dir_paths['basedir'] ), $file );
if ( filter_var( $file, FILTER_VALIDATE_URL ) === false ) {
try { $image_size = getimagesize( $file ); } catch ( Exception $e ) {}
} elseif ( ini_get( 'allow_url_fopen' ) ) {
try { $image_size = getimagesize( $file ); } catch ( Exception $e ) {}
}
return $image_size;
}
Bests, Lena
]]>Hi there,
I’m attempting to crop a jpg image for the Graphene Header, but keep getting the following error:-
“There has been an error cropping your image”
This happens no matter what size jpg image I try to crop.
What is the error and how can I overcome it ?
Using Graphene 2023 on WordPress 6.1.1/Windows 10
Thanks.
]]>I am having problems positioning an image at the top of a dynamically added widget. When I type text into the widget area, it appears at the top left of the widget, but when I type the image code into widget at the same place, it renders at the bottom of the widget. How can the image to render at the top of the widget. The page i am working on is at https://www.boardingtheark.net
Thank you in advance for any clarity you might offer.
Hallo,
bekomme beim Aufruf der Internetseite pl?tzlich eine Fehlermeldung im oberen Bereich:
“Warnung: Versuch, auf den Array-Offset auf den Wert vom Typ bool in /homepages/36/d906205391/htdocs/clickandbuilds/25JahreVolvobeiVogesAutomobileGmbH/wp-includes/media.php in Zeile 779 zuzugreifen”.
Wie bekommt man diesen Fehler wieder weg?
Gru?
KALLE
Hi,
I have used Graphene for a long time now with no issues. However, I tried to upgrade to the release version of WordPress 6.1 automatic one.
It all seemed fine, no issues at all. Except some of the menu items were gone.
My menu is standard with a mixture of categories and pages nested. However, some just were not there. I cannot see how that is, as some worked and some not with no pattern or amount of nesting.
I had to recover the whole site from a backup so you cannot see it, but it is 100% only after the upgrade, so somthing broke inside the Graphene menu code.
Pages that don’t appear for example are…
A Level Physics Chapters -> 2 Particle and Radiation (fine) -> 1 Matter and Radiation (missing)
So it is category, category, page (not working).
However, the same structure on…
Science -> Chemistry -> C1,2,3 AQA Test Revision (works)
Sadly you cannot see it now as I cannot put the site down, but any advice would be great. I even turned off me “menu” helper apps, but that made no difference.
I am assuming there is some clever code which has message it up.
Also thanks for the Theme, is it amazing, and for me as a Teacher works so well ??
]]>We have been emailing through their own website for 2 months creating a support ticket. Also to their own mail address. But no response at all?
We are experiencing problems with the Graphene Plus theme and want support! And we want them to respond!
We are paying customers and never had any problems, but now they don’t react at all? Bad service.
Error : PHP Warning: getimagesize(/xxx/yyy/blog/files/2022/03/vlcsnap-2021-10-12-15h10m39s325-1024×250.png): failed to open stream: No such file or directory in /applis/www/devblog/wp-content/themes/graphene/inc/functions.php on line 519
In function : graphene_get_image_size( $file ).
With multisite wordpress with image loading for theme and without crop (because the function is not call if crop), the absolute value of $file need /wp-content/blogs.dir/[number_of_blog]/ between ABSPATH and image path but only with image load, not with image in the theme.
In error : /xxx/yyy/blog/ is the ABSPATH and files/2022/03/vlcsnap-2021-10-12-15h10m39s325-1024×250.png is the image path, original $file is : https://zzzzzz.ac-poitiers.fr/demodoc/files/2022/03/vlcsnap-2021-10-12-15h10m39s325-1024×250.png and site_url() : https://zzzzzz.ac-poitiers.fr/demodoc.
With an image in graphene theme dir, it’s work.
Graphene ver 2.9 (2022-3-19)
]]>Downloaded the new version today and the styling to the side widget and footer widget titles is messed up.
Can we get these set up the way they were in the last version. Padding and styling is completely gone.
Thanks
]]>I am using WordPress 5.9.1 in a multisite install, Graphene Theme version 2.8.6, PHP version 8.0.
The following warning error is sometimes generated in the log:
PHP Warning: Attempt to read property "display_name" on bool in /home/*****/***/blog/wp-content/themes/graphene/inc/comments.php on line 232
I can see that it is generated if the previous line in comments.php does not get a valid WP User object and instead returns a boolean false.
I suggest that this function graphene_comment_author_link( $user_id ) be updated to return $author_link = get_comment_author_link();
if the line $author = get_userdata( $user_id );
returns a boolean false.
Hi and good day,
How to add a ”posted on {date}” notification for Graphene theme,
such as this one:
Posted on?2022-01-28?By?f2admin
Posted in?Andra_Nyheter
at the end of the post & page, example is from Colinear theme?
/
with best regards, Omar KN, Stockholm, Sweden
The archive views display correctly, but when I use the WP built-in search, the featured image is displayed twice in each search result. The temporary copy at the “page you need help with” URL shows the problem. I have disabled all plugins and all code is the latest released version.
]]>As shown in this screenshot, the button CSS class “is-style-outline” has no effect. So when I select the “outline” style of the built-in Button block, there’s no difference in appearance from the “filled” style.
Obviously I can define my own CSS rule for this, but this is perplexing for novice users who may not understand how to use CSS. A reasonable default behavior would be preferable.
]]>The sample page has a sidebar whose contents are as follows:
Here are the problems I see with this:
WordPress doesn’t seem to acknowledge the older version of Graphene 1.9.4.1. I chose not to update to current version because I don’t care for the layout structure. The theme functions fine with my other websites. I have tried different browsers and clearing history.
]]>Hi and good day,
For the header image, I want to use a 2x size image (W: 2340px).
WP doesn’t allow the user to do this.
I need to know the class/ id which defines the header image.
What I tried is
div#header img
but this doesn’t seem to work.
[How to Fix the Blurry Logo on Your WordPress Site | Compete Themes](https://www.competethemes.com/blog/blurry-logo-wordpress/) has some CSS but it only applies to their specific theme.
.custom-logo,
.site-header .logo {
max-width: 100% !important;
width: 450px !important;
height: auto !important;
}
/
Any advice would be greatly appreciated!
With best regards,
Omar KN
Unable to attached a screenshot here, therefore must describe.
I have an old version of Graphene and don’t wish to upgrade. Accidentially deleted the Category Title block from widget and wish to get it back to website. Through many attempts, unable to on current version of wordpress.
]]>Hi and good day,
After embedding a YT video, sometimes the default image is quite ugly (a grey nothing). I would like to put an overlay-image on top of the youtube/ vimeo video, which of course disappears the moment one starts the video.
Many answers (on the web) are about sliders with videos, this is not meant here.
Just an image, same size as the video.
]]>This php snippet (PHP-Include-Snippet) does not work inside the Graphene theme of WordPress, although it works in a static php webpage.
<?php
include($_SERVER[‘DOCUMENT_ROOT’].’/m/nlinks.php’);
It’s just a simple list of links.
Another simple date snippet however, works alright:
<?php
$today = date(“Y-m-d”);
echo $today;
What could be the reasaon it doesn’t work?
I’m using the XYZ PHP Code plugin for those.
https://share.getcloudapp.com/Z4urxzRQ
/
with best regards, Omar KN, Stockholm, Sweden