Adding to HTML block

Permalink
Cannot add certain code to HTML block.

Problems with adding an iframe and javascript.

Throws error 'Page Not Found No page could be found at this address. Back to Home'.

I get the same thing when adding final options to the extended form add-on.

Also have issues with certain characters going into text editor, combination of the equal sign and some other things I cant remember now.

C5 version C5.5.1, fresh install, new database, cleared cashe, set and unset Pretty URL's.

New custom page type with no javascript interfering.

Spent over a week in the forums cannot find answer.

See attached images.

Anybody any ideas, please.

2 Attachments

Steevb
 
Mnkras replied on at Permalink Reply
Mnkras
I just tried adding the skype code in my html block and it worked fine...
Steevb replied on at Permalink Reply
Steevb
Ok, I have three sites only one allows skype code?
Steevb replied on at Permalink Reply
Steevb
Maybe you can, but it doesn't answer my question?
Steevb replied on at Permalink Reply
Steevb
This is the error shown by Firefox on Add.

[17:20:27.512] POSThttp://mydomain.net/index.php?cID=163&arHandle=Main&btID=17... [HTTP/1.1 404 Not Found 1693ms]

It works locally, but will not work remotely.

So server issue?

Not sure what to look for. Permissions are good.

Below is environment if it helps:

# concrete5 Version
5.5.1

# concrete5 Packages
Breadcrumbs (2.0), Composer Blog (1.0.3), Disqus Comments (0.4), Expand / Collapse (1.2.1), Extended Form (2.6), Page Hit Counter (1.1), reCAPTCHA Mail Hide (1.0.1), Sell Your Digital Downloads (1.2), Sortable Fancybox Gallery (1.15).

# concrete5 Overrides
elements/header_required.php, themes/theme.zip, themes/theme

# Server Software
Apache

# Server API
cgi

# PHP Version
5.2.9

# PHP Extensions
bcmath, bz2, calendar, cgi, ctype, curl, date, dbase, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mime_magic, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, pgsql, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Optimizer, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 32M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 16M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
JohntheFish replied on at Permalink Reply
JohntheFish
First, I have not actually tried this, so am making a wild guess that is hinted by the general shape of the error message and a few ideas for working round and diagnosis.

Could the problem be a consequence of saving (and therefore subsequently trying to render) the iframe content while the block is in edit mode?

There are a few iframe add-ons, so maybe one of them will solve the issue.

Else, I would try creating a custom view of the html block that doesn't show output while the page is being edited.

Maybe also (as a test to narrow down the problem) hack the iframe code into the custom view (so the html block appears empty), but the code is fixed and thus independent of any edit/save bug.
Steevb replied on at Permalink Reply
Steevb
Add this to HTML block:
<iframe width="560" height="315" src="http://www.youtube.com/embed/jJrFBDLqm7A" frameborder="0" allowfullscreen></iframe>


Wont work?

Take out the bit after the src '="'it accepts it?
<iframe width="560" height="315" srchttp://www.youtube.com/embed/jJrFBDLqm7A" frameborder="0" allowfullscreen></iframe>


Need help please
Steevb replied on at Permalink Reply
Steevb
I know I can get a refund with add-ons.

Can I bill somebody on the amount of time spent trying to fix C5?

Patience and faith is draining fast...

What else should I be looking for?

Nothing in logs.

Tried AGAIN with fresh install, same issue?

It would seem that I'm left to my own devices or to go somewhere else.

There a lot of cries help I've found in the forums with no replies.

I have tried to help others, with a varying degree of success.

If you cant help me or have no idea how to help me, then say so!

Please don't leave an empty post.
Steevb replied on at Permalink Reply
Steevb
I really don't understand what is wrong with answering my question?

I CANNOT add a bit of HTML to the HTML block?

I CANNOT use the add-ons I paid for?

What do you want from me to help you?
mkly replied on at Permalink Reply
mkly
Sorry to here you are having a tough time. That 404 error pretty much has to mean that it can't find index.php at the root.

1. Clear the cache. Then go into /files/cache and delete everything.

2. If you are using APC/X-Cache/Memcache. Disable them. Remove and cache references from /config/site.php

3. Clear the cache again. Check /files/cache and delete everything.

4. Turn off "Pretty URLS". Clear cache. Delete everything in /files/cache/

5. Make sure there is _nothing_ in you .htaccess file. Remove any and all htaccess rules. It should be completely blank.

6. Clear your browser cache. Google your browser and hard clear the cache. Delete all browser cookies. Go to flash system manager(google it) and delete all flash data.

7. If you are using a modified view.php switch it back to the old one. Clear the cache. This one is --_very_ important--. If you are using any of the speed up hacks that override view.php remove them.

8. If you are overriding any concrete5 files(including block files) remove them. Clear cache.

9. Check /config/site.php and make sure you have the same version number listed(if listed) that you are using.

10. Check the database table Config and look at SITE_APP_VERSION. Is it the correct version?

11. Check /concrete/config/version.php is it the correct version?

That error is most likely because for some reason the server does not think index.php is their or requests are getting mapped to something else.
fastcrash replied on at Permalink Reply
fastcrash
well, i dont know too, my html block is fine, i'm using 5.4, but if you use 5.5, i dont test it yet.
you have 14k karma and have won a lot of badges, i think thats the proof you are already mastering c5,
so other do not answer your question yet.
Steevb replied on at Permalink Best Answer Reply
Steevb
Thanks for the replies.

This is an old problem (also on another post).

To cut a long (4 month) story short.

My hosting company got hacked, modified some accounts and applied 'mod_security' without telling me?

Even with searching and researching, modifying .htaccess, modifying database, messing with C5 and having sleepless nights over this VERY frustrating issue I still could not fix it?

Out of total desperation and unable to move forward with a couple of sites, I contacted them today and they fixed it!

I blamed the C5.4.2.2 update first, then the developer add-on that wouldn't work.

Server mod and C5 update happened at roughly the same time?

So obviously updating to C5.5.1 was not going to make any difference.

Happy for now!

BTW, told them what I thought of it all. In one ear and out the other!