Open Dhamoseo opened 3 years ago
Hallo @drooban
I had exactly the same issue. I solved it the following way and got ride of the module and switched to the build in elementor function of the header and footer:
1.) Import the last backup where the stylepress plugin was working 2.) Go to Stylepress > Style > Edit and open it with Elementor 3.) In Edit mode save the block (Header or Footer) to the templates 4.) Leave the Elementor Edit mode 5.) Deactivate stylepress (otherwise it cause an error in step 6) 6.) Go to Elementor>Build Theme> Header > create new one 7.) Click on Edit with elementor 8.) Click on the folder Icon to load the previous saved template
Then upgrade Wordpress and all Plugins to the latest.
Kind regards, Julius
Hi Julius,
Already I have updated the WordPress and all Plugins to the latest.
Then only I have seen the error.
What can I do now? Is any other way is there?
On Mon, Jan 11, 2021 at 1:53 PM Julius Stein notifications@github.com wrote:
Hallo @drooban https://github.com/drooban
I had exactly the same issue. I solved it the following way and got ride of the module and switched to the build in elementor function of the header and footer:
1.) Import the last backup where the stylepress plugin was working 2.) Go to Stylepress > Style > Edit and open it with Elementor 3.) In Edit mode save the block (Header or Footer) to the templates 4.) Leave the Elementor Edit mode 5.) Deactivate stylepress (otherwise it cause an error in step 6) 6.) Go to Elementor>Build Theme> Header > create new one 7.) Click on Edit with elementor 8.) Click on the folder Icon to load the previous saved template
Then upgrade Wordpress and all Plugins to the latest.
Kind regards, Julius
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dtbaker/stylepress/issues/48#issuecomment-757702206, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJ7OKHR43SGU2ZQ36JRD2LSZKYPLANCNFSM4VFUIBMA .
I get this same error as well. I think this stylepress just isn't compatible with new wordpress or something? This stylepress hasn't been updated for 2 years according to the wordpress plugins page. This really sucks as while the website I have it on still works, I am unable to make any changes to the stylepress portions of the layout. Really hoping the developer will comment.
Hi, I think I have fixed the error. The problem is that StylePress was not generating the Elementor edit link, I suppose, due to some change in the Elementor core. I have changed that link, and now everything works correctly.
The solution:
Go to plugins/full-site-builder-for-elementor/admin/styles-page-inner.php on line 125
Yo will see this:
<tr>
<td>
<a class="" href="<?php echo esc_url(\Elementor\Utils::get_edit_link($style->ID)); ?>"><?php echo esc_html($style->post_title); ?></a>
</td>
<td>
<a href="<?php echo esc_url(admin_url('admin.php?page=dtbaker-stylepress-settings')); ?>">
<?php if ($used) { ?>
<i class="fa fa-check"></i> Style Applied To: <?php echo implode(', ', $used); ?>.
<?php } else { ?>
<i class="fa fa-times"></i> Style Not Used.
<?php } ?>
</a>
</td>
<td>
<a class="button button" href="<?php echo esc_url(get_edit_post_link($style->ID)); ?>">Settings</a>
<a class="button button" href="<?php print wp_nonce_url(admin_url('admin.php?action=stylepress_clone&post_id=' . (int) $style->ID), 'stylepress_clone', 'stylepress_clone'); ?>"><?php esc_html_e('Clone', 'stylepress'); ?></a>
<a class="button button" href="<?php echo esc_url(get_permalink($style->ID)); ?>"><?php esc_html_e('Preview', 'stylepress'); ?></a>
<a class="button button-primary" href="<?php echo esc_url(\Elementor\Utils::get_edit_link($style->ID)); ?>"><?php esc_html_e('Elementor', 'stylepress'); ?></a>
</td>
</tr>
From 125 to 149...
You just have to replace it with this:
<tr>
<td>
<a class="" href="<?php echo esc_url('post.php?post=' . (int) $style->ID . '&action=elementor'); ?>"><?php echo esc_html($style->post_title); ?></a>
</td>
<td>
<a href="<?php echo esc_url(admin_url('admin.php?page=dtbaker-stylepress-settings')); ?>">
<?php if ($used) { ?>
<i class="fa fa-check"></i> Style Applied To: <?php echo implode(', ', $used); ?>.
<?php } else { ?>
<i class="fa fa-times"></i> Style Not Used.
<?php } ?>
</a>
</td>
<td>
<a class="button button" href="<?php echo esc_url(get_edit_post_link($style->ID)); ?>">Settings</a>
<a class="button button" href="<?php print wp_nonce_url(admin_url('admin.php?action=stylepress_clone&post_id=' . (int) $style->ID), 'stylepress_clone', 'stylepress_clone'); ?>"><?php esc_html_e('Clone', 'stylepress'); ?></a>
<a class="button button" href="<?php echo esc_url(get_permalink($style->ID)); ?>"><?php esc_html_e('Preview', 'stylepress'); ?></a>
<a class="button button-primary" href="<?php echo esc_url('post.php?post=' . (int) $style->ID . '&action=elementor'); ?>"><?php esc_html_e('Elementor', 'stylepress'); ?></a>
</td>
</tr>
Make a backup before trying it.
@ctrlj-dev - Thank you very much. I have done this and it now allows me to edit the couple style templates I had for some pages and make the changes I was looking to make. After I also updated wordpress to the latest version, as well as all of the plugins (including a big Elementor one), and so far still looks to load.
I do notice however that when going in to StylePress > Styles, and then clicking on "Edit Style" button for a style, it is still showing an error message. So the "Outer Style" section loads, this is the part where I can click "Elementor" and make the changes I mentioned. But in the lower section "Inner Styles" it shows "There has been a critical error on this website. Please check your site admin email inbox for instructions"; and, I received an email "Your Site is Experiencing a Technical Issue". I have two outer styles on the site, the one gives this error and the other doesn't (presumably I don't have an Inner Style).
An error of type E_ERROR was caused in line 194 of the file /
I took a screenshot and tried uploading as image on this post as well.
Any new update about stylepress plugin. I want to update some changes. Can you please help me?
On Sat, May 1, 2021 at 1:56 AM cory-github @.***> wrote:
@ctrlj-dev https://github.com/ctrlj-dev - Thank you very much. I have done this and it now allows me to edit the couple style templates I had for some pages and make the changes I was looking to make. After I also updated wordpress to the latest version, as well as all of the plugins (including a big Elementor one), and so far still looks to load.
I do notice however that when going in to StylePress > Styles, and then clicking on "Edit Style" button for a style, it is still showing an error message. So the "Outer Style" section loads, this is the part where I can click "Elementor" and make the changes I mentioned. But in the lower section "Inner Styles" it shows "There has been a critical error on this website. Please check your site admin email inbox for instructions"; and, I received an email "Your Site is Experiencing a Technical Issue". I have two outer styles on the site, the one gives this error and the other doesn't (presumably I don't have an Inner Style). `Error Details
An error of type E_ERROR was caused in line 194 of the file //wp-content/plugins/full-site-builder-for-elementor/admin/styles-page-inner.php. Error message: Uncaught Error: Call to undefined method Elementor\Utils::get_edit_link() in /home/lieversc/public_html/ fieldlieversarchitecture.ca/wp-content/plugins/full-site-builder-for-elementor/admin/styles-page-inner.php:194 Stack trace:
0
//wp-content/plugins/full-site-builder-for-elementor/admin/styles-page.php(32): require_once()
1 https://github.com/dtbaker/stylepress/issues/1
//wp-content/plugins/full-site-builder-for-elementor/inc/class.plugin.php(802): include('/home/user/...')
2 https://github.com/dtbaker/stylepress/issues/2
//wp-includes/class-wp-hook.php(287): DtbakerElementorManager->styles_page_callback('')
3 https://github.com/dtbaker/stylepress/issues/3
//wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
4 https://github.com/dtbaker/stylepress/issues/4
//wp-includes/plugin.php(484): WP_Hook->do_action(Array)
5 https://github.com/dtbaker/stylepress/issues/5
//wp-admin/admin.php(259): do_action('`
I took a screenshot and tried uploading as image on this post as well.
[image: error1] https://user-images.githubusercontent.com/5701302/116749885-d5c0e100-a9be-11eb-9f4f-163a8c0116ca.png [image: error2] https://user-images.githubusercontent.com/5701302/116750182-4d8f0b80-a9bf-11eb-899c-10bc3a04ff21.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dtbaker/stylepress/issues/48#issuecomment-830361662, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJ7OKCGM7PIO6DJCRQZVC3TLMHA3ANCNFSM4VFUIBMA .
How do I fix the issue?
My existing styles are not showing. I don't know why it happens
Can you please help me?