Unable to edit CSS Styles
Permalink Browser Info Environment
Hi Jordan, thanks for a fantastic add-on.
I'm having a problem styling one of the blocks I have created.
As far as I can see the markup is error-free and page source shows the classes have been applied but I cannot for the life of me manage to edit them in my stylesheet
The block is basically an <h3> followed 3 thumbnails, followed by a description
Would appreciate any help you could give
Thanks
I'm having a problem styling one of the blocks I have created.
As far as I can see the markup is error-free and page source shows the classes have been applied but I cannot for the life of me manage to edit them in my stylesheet
The block is basically an <h3> followed 3 thumbnails, followed by a description
Would appreciate any help you could give
Thanks
Type: | Discussion |
---|---|
Status: | New |
http://golfhotelmontpellier.com/c5/restaurant-la-garrigue/
Hi again,
Unfortunately, I now have an error message whenever i try and add any block:
Fatal Error: Cannot redeclare class etc etc in controller.php line 72
I have tried deleting the block via ftp but unfortunately getting nowhere..
Could you help?
Thanks
Unfortunately, I now have an error message whenever i try and add any block:
Fatal Error: Cannot redeclare class etc etc in controller.php line 72
I have tried deleting the block via ftp but unfortunately getting nowhere..
Could you help?
Thanks
Sorry, a bit more info:
I'm getting this error when trying to get to the "Add Functionality" part of my dashboard
Fatal error: Cannot redeclare class .../blocks/threethumbblock/controller.php on line 72
I'm getting this error when trying to get to the "Add Functionality" part of my dashboard
Fatal error: Cannot redeclare class .../blocks/threethumbblock/controller.php on line 72
What blocks do you have in your site's "blocks" directory?
And did you happen to move anything to your "packages" directory by any chance?
And did you happen to move anything to your "packages" directory by any chance?
Thanks for the reply, I'm having a bit of a stress!
These are the folders:
threethumbblock
testblock
three_thumb_block
contentblock
I tried deleting the folders but didn't have permission. I deleted the table line in phpmyadmin
I renamed the first folder (threethumbblock) and can now add blocks again (albeit not that one)
However, I still cannot access the add functionality page.
In the packages directory, there's just your own add-on
These are the folders:
threethumbblock
testblock
three_thumb_block
contentblock
I tried deleting the folders but didn't have permission. I deleted the table line in phpmyadmin
I renamed the first folder (threethumbblock) and can now add blocks again (albeit not that one)
However, I still cannot access the add functionality page.
In the packages directory, there's just your own add-on
Ideally you need to get permission to delete block folders from your server. But if you can't, then you need to go into the "controller.php" file of the one you changed the name for and edit the "class" line near the top so it matches the new name of the folder. For example, if you changed "threethumbblock" to "oldthreethumbblock", then change contorller.php from this:
...to this:
Also be careful with the names -- it is not a good idea to have the same names with and without underscores. What I mean is that your system is probably getting confused between "threethumbblock" and "three_thumb_block" because they are the same letters, just with more underscores.
Hope this helps.
-Jordan
class ThreethumbblockBlockController extends BlockController {
...to this:
class OldthreethumbblockBlockController extends BlockController {
Also be careful with the names -- it is not a good idea to have the same names with and without underscores. What I mean is that your system is probably getting confused between "threethumbblock" and "three_thumb_block" because they are the same letters, just with more underscores.
Hope this helps.
-Jordan
Thanks again Jordan,
Unfortunately, if I try and edit or delete the files, I'm getting an error with permission denied.
Is there any other way to get out of this without doing a fresh install?
In the future I will try to be more careful with the names, the problem I was having was I would leave out a " in the html part and then I'd have to create the same block again to put it right.
Unfortunately, if I try and edit or delete the files, I'm getting an error with permission denied.
Is there any other way to get out of this without doing a fresh install?
In the future I will try to be more careful with the names, the problem I was having was I would leave out a " in the html part and then I'd have to create the same block again to put it right.
Unfortunately if you do not have permissions to change or delete things from the "blocks" directory, then it is going to be very difficult to use Designer Content on your site.
You should ask your web host to grant you this permission -- it is very strange that they are restricting you in this way as every web host I've ever used lets you do what you want inside your own area of the server. In fact, you will probably run into a lot of problems with other things as well if you don't have permission to change or delete files from your own server.
If that is not possible, then what you can do is run a local webserver with WAMP (on Windows) or MAMP (on a Mac), build your blocks there, then when you know you have them correct you can upload those to your server via FTP.
Otherwise there is unfortunately nothing I can do to help :(
-Jordan
You should ask your web host to grant you this permission -- it is very strange that they are restricting you in this way as every web host I've ever used lets you do what you want inside your own area of the server. In fact, you will probably run into a lot of problems with other things as well if you don't have permission to change or delete files from your own server.
If that is not possible, then what you can do is run a local webserver with WAMP (on Windows) or MAMP (on a Mac), build your blocks there, then when you know you have them correct you can upload those to your server via FTP.
Otherwise there is unfortunately nothing I can do to help :(
-Jordan
Thanks Jordan,
I really appreciate your helping me as best as you could. I'm pretty sure it's not a restriction from my server as I'm able to do pretty much anything else.
Could it be .htaccess related?
I have found a temporary solution, seeing as I can't delete or edit the blocks folder - renaming the blocks folder to "blockskjkhkjhk" and then create a new blocks folder seems to have got me back in to the dashboard anyway... We'll see how we go from there
Thanks again and good work on the add-on!
I really appreciate your helping me as best as you could. I'm pretty sure it's not a restriction from my server as I'm able to do pretty much anything else.
Could it be .htaccess related?
I have found a temporary solution, seeing as I can't delete or edit the blocks folder - renaming the blocks folder to "blockskjkhkjhk" and then create a new blocks folder seems to have got me back in to the dashboard anyway... We'll see how we go from there
Thanks again and good work on the add-on!
I think I understand what's going on now...
When the block is created by the code, all of the files get added under the permissions of the web server process (Apache), which is a different system user than you. If your account doesn't have the ability to modify files made by the web server process, then you won't be able to make changes to the block files.
This is a very tricky situation and I'm not sure if there is a solution, other than creating the blocks on your own computer (using a local installation of Concrete5 on WAMP or MAMP), then copying the created block folder up to your server via FTP.
By the way, it definitely does not have anything to do with .htaccess (that file only deals with people accessing the web site through a browser, not you accessing the files through FTP or CPanel or SSH).
When the block is created by the code, all of the files get added under the permissions of the web server process (Apache), which is a different system user than you. If your account doesn't have the ability to modify files made by the web server process, then you won't be able to make changes to the block files.
This is a very tricky situation and I'm not sure if there is a solution, other than creating the blocks on your own computer (using a local installation of Concrete5 on WAMP or MAMP), then copying the created block folder up to your server via FTP.
By the way, it definitely does not have anything to do with .htaccess (that file only deals with people accessing the web site through a browser, not you accessing the files through FTP or CPanel or SSH).
Yeah my brother who is also a designer said he thought it may be a user permissions vs ftp permissions problem and that we can't override the user permissions due to sharing the server...
He suggested going in to an ftp browser via the server.
The add-on was working fine though til the double name problem so I'm hoping these problems will be the exception rather than the rule!
Anyway I'm doing a fresh install and looking forward to using Designer Content again
Cheers for trying to help, it's much appreciated!
He suggested going in to an ftp browser via the server.
The add-on was working fine though til the double name problem so I'm hoping these problems will be the exception rather than the rule!
Anyway I'm doing a fresh install and looking forward to using Designer Content again
Cheers for trying to help, it's much appreciated!
Sounds good. Thanks for posting this information -- the next time I update Designer Content I will add some checks to avoid this problem from happening in the future.
-Jordan