Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
MrChill
tagDiv Member

Lucian,

Thank you very much for all the reading material. I spent the better portion of today deleting all old databases, wordpress and other CMS system directories, etc. just to tighten down the security of my server. There was a lot of house cleaning that needed to be done.

Once I cleaned everything up, I re-installed WP and the theme, and the ajax issues just went away.

I’ve also installed some extra security plug-ins, check the directory permissions, added stronger passwords to the accounts and am finishing up some other security audits. Thanks once again!

MrChill
tagDiv Member

No problem, I’ll just update it manually! Thanks!

MrChill
tagDiv Member

I’m also using the Gethub Envato plug-in and have set it up per the instructions Emil posted above. No problems so far, thanks for the tip! As for the Visual Composer plug-in update that comes inside of the package, it never automatically installs the latest version of plug-in, even if you’re using the Gethub solution, correct? Or is there a way to automatically have the updater also update the VC plugin at the same time it does the theme? Thanks!

MrChill
tagDiv Member

Note: I apologize if this was posted in the wrong section, as I have the Newsmag theme installed, not the Newspaper (where this forum thread was started). Sorry for any confusion this may have caused!

MrChill
tagDiv Member

Hello folks.

I’m also having issues with trying to save theme settings. I’m using the latest version of both WordPress and Newsmag themes. I’ve disabled all plug-ins except for Wordfence, WPBakery Visual Composer,Ultimate Addons for Visual Composer, tagDiv Visual Composer Shim and tagDiv Speed Booster.

When in the theme settings page in the admin panel, I’m able to modify most of the settings without any issue. However, when I try to click on the Block predefined style section links to modify them, the ajax spinning icon just hangs and doesn’t pop open the menu. When I pull open the dev console in Chrome, I noticed this:

Uncaught SyntaxError: Unexpected token < admin.php:1

Things that I’ve tried:

Cleared both the server cache and the browser cache.

I’ve spoken with my host, HostGator and asked them to check the admin-ajax.php and confirm that it wasn’t being blocked, which they said it wasn’t. They also stated that the maximum memory limit is already set to 256, and cannot be changed by the end-user on a shared hosting account.

Reference: http://support.hostgator.com/articles/cpanel/php-settings-that-cannot-be-changed

memory_limit = 256M (MAXIMUM)

Per Chris’s link above, I also went into the wp-config.php file and added the following line of code:

/** Increased memory allotment to prevent Ajax Errors. https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

(The official WordPress.org article Chris showed said you had to add it in prior to settings.)

Please note, this has to be put before wp-settings.php inclusion.

You can see it in-line where I included it right after the absolute path section, and before the wp-settings.php section, here:

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Increased memory allotment to prevent Ajax Errors. https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Perhaps this is related, but when I’m on the front end, and try to use the left and right arrows to scroll through content in the various section blocks, the ajax loading icon just spins, and the console spits out the following error:

SyntaxError: Unexpected token < madlymanly.com/:1

Any thoughts as to what is causing the syntax error message in the console? Thank you in advance for the help!

  • This reply was modified 11 years by MrChill.
  • This reply was modified 11 years by MrChill.
Viewing 5 posts - 1 through 5 (of 5 total)