- Proyectos /
- Foro /
- WP Carousel /
- Not Saving or updating Carousels after update
Tagged: english WP Carousel 1.0
This topic contains 15 replies, has 1 voice, and was last updated by Deejay 1 year, 9 months ago.
Not Saving or updating Carousels after update 4/7/2011 at 16:45 #5183
Hi,
After updating my WP Carousel to version 1.0 it no longer saves carousels. I cannot update or create any new Carousel options. I click the ‘Save’ button and nothing happens…
Please help!
Thanks,
Ryan
Reply To: Reply To: Not Saving or updating Carousels after update 5/7/2011 at 6:45 #5185
Do you get any error message when you save?
WP Carousel has to determine the path to file wp_blog_header.php in order to be able to save changes, so if WP Carousel has failed at this point, it can’t save any change.
If the error is that WP Carousel uses an incorrect path to load wp_blog_header.php, you can do the following steps to find the error.
- Open update_db.php in WP Carousel folder
- Replace all the content of that file with this new code:
if (!defined(‘WP_CAROUSEL_WP_BLOG_HEADER_FILE’)) { define(‘WP_CAROUSEL_WP_BLOG_HEADER_FILE’, ‘wp-blog-header.php’); } $folder_path = ”; while (!is_readable($folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE)) { $folder_path .= ‘../’; if (!is_dir($folder_path)) { break; } } echo $folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE; - Try to save again. You’ll see a path when you clic on the save button.
- Check if that path is correct. If it is not correct, please, post here the path you get and the correct path.
-
This reply was modified 1 year, 10 months ago by
Sumolari.
Reply To: Not Saving or updating Carousels after update 5/7/2011 at 17:33 #5189
Thanks.
But, the code does not display anything? What should I be looking for? It just flashes the loading bar in the bottom corner.
I emailed you login details. The code you sent is still live..
I’ve tried to uninstall/reinstall a few times and nothing.
Thanks for the help and let me know.
Ryan
Reply To: Not Saving or updating Carousels after update 6/7/2011 at 22:45 #5191
Anyone? I’m pulling my hair out…
Thx!
Reply To: Not Saving or updating Carousels after update 7/7/2011 at 5:51 #5193
I tried to uninstall and i’m getting this error now: Warning: Invalid argument supplied for foreach() in /home/sitename/public_html/wp-content/plugins/wp-carousel/extras/internal-carousel/index.php on line 53
Any ideas?
Reply To: Reply To: Not Saving or updating Carousels after update 7/7/2011 at 6:12 #5194
Sorry, I wasn’t notified about new replies in this topic, probably the email was marked as spam by mistake.
The code is not correct. I don’t know why, but line 6 has a quotation mark (“) instead of two apostrophe (‘). Here is the code fixed:
if (!defined(‘WP_CAROUSEL_WP_BLOG_HEADER_FILE’))
{
define(‘WP_CAROUSEL_WP_BLOG_HEADER_FILE’, ‘wp-blog-header.php’);
}
$folder_path = "";
while (!is_readable($folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE))
{
$folder_path .= ‘../’;
if (!is_dir($folder_path))
{
break;
}
}
echo $folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE;
This code does the following:
- It defines the name of the file wp-blog-header.php (needed to save changes).
- It set ups the current folder as ”.
- A loop is started: while there is no file called wp-blog-header.php in the folder, the current folder is the parent folder of the previous current folder.
- If the parent of the current folder is not a dir, we have gone too far and break the loop in order to avoid an infinite loop.
- Then, when we have discovered the path to the folder that stores wp-blog-header.php, it prints that path (just to know if it is correct or no).
When you save changes, that code is executed and then near to the message of “Changes saved” you’ll see that path, something similar to: ../../../wp-blog-header.php.
About the error of your last post, if you are sure about deleting WP Carousel, first remove its contents from database (you’ll see that option in the “Uninstall” page, in the WP Carousel menu). Then you must remove any code of carousels from your WordPress theme (like
<?php wp_carousel(1); ?>) and every WP Carousel Widget. The shortcode is not needed as when WP Carousel is not active, the shortcode is not parsed and it simply shows [wp_carousel].
Reply To: Not Saving or updating Carousels after update 7/7/2011 at 6:16 #5197
So I uninstalled, by replacing the new version of Wp_Carousel with an older version.
Then I uninstalled and it completed the uninstall
I uploaded the latest version, activated, and it still won’t save.
This is correct:
Path to wp-carousel.php : http://www.mysite.com/wp-content/plugins/wp-carousel/wp-carousel.php
Any ideas? Please???
Thx
Please, what’s wrong?
Reply To: Not Saving or updating Carousels after update 7/7/2011 at 6:25 #5198
I’m getting the same error.
I’ve emailed you my ftp information and wp-admin info.
Can you please have a look? I’m useless it seems.
Thanks so much for the help.
Ryan
Reply To: Not Saving or updating Carousels after update 7/7/2011 at 6:38 #5199
I think we posted a new message at the same time.
I think your error can be caused by three things:
- There is a Javascript error, and when you try to save the Javascript function that loads the page that saves the content is not called or it fails.
- The path to wp-blog-header.php is not correct and you should see an error message when you try to save.
- File update_db.php has permissions that don’t allow other files to load it, so it can’t be loaded and it can’t save changes.
If you want, I’ll login in your site and check if it is a Javascript error.
To check the second possitibility, just use the code above.
To check the third possibility, change chmod of file update_db.php to 644 and try to save again.
Reply To: Not Saving or updating Carousels after update 7/7/2011 at 6:49 #5200
Hi,
1. Not sure how to check for this
2.I see no message
3.permissions are good.
maybe it’s best if you have a look at my ftp. it’ll save us alot of time…
have a look and let me know.
greatly appreciated.
r
Reply To: Not Saving or updating Carousels after update 7/7/2011 at 6:59 #5201
The problem is that when you try to load http://www.flowmediainc.com/wp-content/plugins/wp-carousel/update_db.php, it returns an 404 error instead of the page.
There is no Javascript error.
I’ll try to fix it.
Reply To: Reply To: Not Saving or updating Carousels after update 7/7/2011 at 7:13 #5203
I think your problem is not a WP Carousel bug.
When I try to load http://www.flowmediainc.com/wp-content/plugins/wp-carousel/update_db.php, I can’t, I get an 404 error, but the file exists (I’ve checked it through FTP).
If I try to load http://www.flowmediainc.com/wp-content/plugins/wp-carousel/readme.txt, I can see the file, so the folder exist, and files are there but I can’t load it, and as I, WP Carousel can’t load them.
Contact to your hosting providers and ask them what is happening. I think there is a problem with .htaccess and permalinks, but I don’t know how to fix it.
-
This reply was modified 1 year, 10 months ago by
Sumolari.
Reply To: Not Saving or updating Carousels after update 8/7/2011 at 16:42 #5206
My hosting provider does not see an issue.
Is it possible to hardcode the path?
I reverted back to the original update_db.php file and get this error:
Fatal error: Call to undefined function __() in /home/mysite/public_html/wp-content/plugins/wp-carousel/update_db.php on line 19
any more suggestions or just move on?
Thx.
Reply To: Not Saving or updating Carousels after update 9/7/2011 at 7:00 #5207
Replace line 19 with:
<?php echo ‘There was an error, please, report it in the forum and attach this error message:’; ?>
But you can’t load update_db.php directly: you’ll get always an error.
Try to save a carousel, it might work now.
I don’t know why, but if you can access now the file, WP Carousel may access the file and save changes.
This topic has been closed to new replies.