DyingDutchman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRING<script type="text/javascript" charset="UTF-8" src="https://maps.gstatic.com/cat_js/intl/en_ALL/mapfiles/api-3/15/1/%7Bcommon,map%7D.js"></script> <script type="text/javascript" charset="UTF-8" src="https://maps.gstatic.com/cat_js/intl/en_ALL/mapfiles/api-3/15/1/%7Butil,onion%7D.js"></script> <script type="text/javascript" charset="UTF-8" src="https://maps.gstatic.com/cat_js/intl/en_ALL/mapfiles/api-3/15/1/%7Bcontrols,stats%7D.js"></script> <script type="text/javascript" charset="UTF-8" src="https://maps.gstatic.com/cat_js/intl/en_ALL/mapfiles/api-3/15/1/%7Bmarker%7D.js"></script>
These are the scripts related to google maps that are getting inserted into my header. There is no sign of the original script to be seen. Is that normal?
I can see the map being inserted, however it is entirely grey with a strange “glitch” in the top left corner.
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRINGThat’s it! That got the widget to appear. The last problem i cannot seem to solve is to correctly render the google map. I get two errors in the console that are kind of unknown to me, so i do not know how to solve it.
GET: https://maps.googleapis.com/maps/api/js/ViewportInfoService.GetViewportInfo?1m6&1m2&1dNaN&2dNaN&2m2&1dNaN&2dNaN&2u8&4sen&5e0&6sm%40245000000&7b0&8e0&9b0&callback=_xdc_._oay0qo&token=123778 : 403(forbidden
and
It is either that, or i have to rerender the api after the page is loaded (as this seems to be a issue that is known to google).
Forum: Fixing WordPress
In reply to: Delete broken pageThe hyperlink isn’t freed up until you empty the trashed blog posts. Go to Posts, trash the post you want to remove, then click the category Trash, and permanently remove the removed post.
Forum: Fixing WordPress
In reply to: Stealth login a myth or useful?the better WP security plugin is a good place to start out a more secure website. It will give you a few pointers of well exploited cases on your website. Also, hiding your login area is crucial to block automated brute-force attacks. WP comes with a ip blacklist function, but this allone will not protect you against brute-force attacks, so hiding your backend is reccomended.
Forum: Fixing WordPress
In reply to: Site displays properly ONLY on Firefox!Also make sure the change of CSS isn’t caused by a plugin. Disable all plugins, and check if the problem still presists.
Forum: Themes and Templates
In reply to: Featured image resizing weirdlyAlso, the thumbnails seem to show themselves in 251×176, which is a quite weird aspect ratio.
Forum: Themes and Templates
In reply to: Featured image resizing weirdlyIt looks fine to me? What is the exact page where this happens, and what is the resolution of your screen? It might affect how the images are shown.
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRINGNope, still broken. It still gets dumped in the body. I am pretty confused right now…
These are the errors i am getting:
Notice: Undefined property: google_maps_api::$option_name in ***/wordpress/wp-includes/widgets.php on line 291
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in ***/wordpress/wp-includes/widgets.php on line 788
As this is not referring to my own code, i have no idea where this is coming from.
Forum: Fixing WordPress
In reply to: Can't access my site via FTP or WP-Admin loginDont’t worry, there is always a solution. I also forgot about blacklisting, which could very well be what is going on here. Try connecting from a different network. (i.e. your phone)
Forum: Fixing WordPress
In reply to: Can't access my site via FTP or WP-Admin loginIt seems to me that your hosting provider should be able to offer you a solution. Or do you happen to have SSH access?
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRINGI got everything back in the header again. It seems i messed up the script by trying to add the google maps JavaScript as an internal file. The file is secured in a way that it can only be loaded from google’s own API page.
Because of this error, wordpress behaved as if the head element was done, and put everything else in the body tag. I hope this is usefull to people. I still think this reaction is a bit weird from wordpress. A bug maybe?
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRINGWell while this did fix one of the errors i was having, this did not solve the dumping of the head information inside the body.
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRINGWait no.. It seems that this placed almost all of my <head> content in the <body>. Not sure if this is fixed when i solve the errors though.
Forum: Fixing WordPress
In reply to: add_action always resulting in unexpected T_STRING*facepalm* sorry for the typo error, that happens to me way too much than it should…
This did it i think! I am getting new errors about the following lines of code, so i can continue debugging those! Many thanks!!!
Forum: Fixing WordPress
In reply to: Slow WebsiteTry disabling all plugins and check if it goes any faster. If so, try enabling them one by one and check every time you activated one if the speed of your site dropped. Then you found the culprit.
I do notice that the site automaticly plays media, which can be a huge factor to this problem, however i am not entirely sure.